source: src/Actions/SelectionAction/Molecules/MoleculeByNameAction.def

Candidate_v1.6.1
Last change on this file was 1259df, checked in by Frederik Heber <heber@…>, 9 years ago

Replaced World::getAllMolecules() wherever possible by const version.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 * MoleculeByNameAction.def
3 *
4 * Created on: Dec 7, 2010
5 * Author: heber
6 */
7
8// all includes and forward declarations necessary for non-integral types below
9#include <vector>
10
11class molecule;
12
13#include "Parameters/Validators/DummyValidator.hpp"
14
15// i.e. there is an integer with variable name Z that can be found in
16// ValueStorage by the token "Z" -> first column: int, Z, "Z"
17// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
18#define paramtypes (std::string)
19#define paramtokens ("select-molecules-by-name")
20#define paramdescriptions ("molecule name")
21#undef paramdefaults
22#define paramreferences (molname)
23#define paramvalids \
24(DummyValidator< std::string >())
25
26#define statetypes (std::vector<const molecule *>)
27#define statereferences (selectedMolecules)
28
29// some defines for all the names, you may use ACTION, STATE and PARAMS
30#define CATEGORY Selection
31#define MENUNAME "selection"
32#define MENUPOSITION 9
33#define ACTIONNAME MoleculeByName
34#define TOKEN "select-molecules-by-name"
35
36
37// finally the information stored in the ActionTrait specialization
38#define DESCRIPTION "select a molecule by name"
39#undef SHORTFORM
Note: See TracBrowser for help on using the repository browser.