1 | /*
|
---|
2 | * FragmentationAction.def
|
---|
3 | *
|
---|
4 | * Created on: Aug 26, 2010
|
---|
5 | * Author: heber
|
---|
6 | */
|
---|
7 |
|
---|
8 | // all includes and forward declarations necessary for non-integral types below
|
---|
9 | #include <boost/assign.hpp>
|
---|
10 | #include <string>
|
---|
11 | #include <vector>
|
---|
12 |
|
---|
13 | #include "Parameters/Validators/DummyValidator.hpp"
|
---|
14 | #include "Parameters/Validators/GenericValidators.hpp"
|
---|
15 | #include "Parameters/Validators/STLVectorValidator.hpp"
|
---|
16 | #include "Parameters/Validators/Specific/BoxLengthValidator.hpp"
|
---|
17 | #include "Parameters/Validators/Specific/ParserTypeValidator.hpp"
|
---|
18 |
|
---|
19 | // i.e. there is an integer with variable name Z that can be found in
|
---|
20 | // ValueStorage by the token "Z" -> first column: int, Z, "Z"
|
---|
21 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
|
---|
22 | #define paramtypes (std::string)(double)(unsigned int)(bool)(std::vector<std::string>)
|
---|
23 | #define paramtokens ("fragment-molecule")("distance")("order")("DoSaturate")("output-types")
|
---|
24 | #define paramdescriptions ("prefix of each fragment file")("distance in space")("order of a discretization, dissection, ...")("do saturate dangling bonds with hydrogen")("type(s) of parsers that output fragment config files")
|
---|
25 | #define paramdefaults (NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(PARAM_DEFAULT(true)) (PARAM_DEFAULT(std::vector<std::string>(1, std::string("pcp"))))
|
---|
26 | #define paramreferences (prefix)(distance)(order)(DoSaturation)(types)
|
---|
27 | #define paramvalids \
|
---|
28 | (DummyValidator< std::string >()) \
|
---|
29 | (BoxLengthValidator()) \
|
---|
30 | (DummyValidator< unsigned int >()) \
|
---|
31 | (DummyValidator< bool >()) \
|
---|
32 | (STLVectorValidator< std::vector<std::string> >(1, 10, ParserTypeValidator()))
|
---|
33 |
|
---|
34 | #undef statetypes
|
---|
35 | #undef statereferences
|
---|
36 |
|
---|
37 | // some defines for all the names, you may use ACTION, STATE and PARAMS
|
---|
38 | #define CATEGORY Fragmentation
|
---|
39 | #define MENUNAME "fragmentation"
|
---|
40 | #define MENUPOSITION 3
|
---|
41 | #define ACTIONNAME Fragmentation
|
---|
42 | #define TOKEN "fragment-molecule"
|
---|
43 |
|
---|
44 |
|
---|
45 | // finally the information stored in the ActionTrait specialization
|
---|
46 | #define DESCRIPTION "create for a given molecule into fragments up to given order"
|
---|
47 | #define SHORTFORM "f"
|
---|