| [1fd675] | 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
 | 
|---|
| [6ba9ba] | 9 | #include <boost/assign.hpp> 
 | 
|---|
| [99b0dc] | 10 | #include <string>
 | 
|---|
 | 11 | #include <vector>
 | 
|---|
| [1fd675] | 12 | 
 | 
|---|
| [649aaa] | 13 | #include "Parameters/Validators/DummyValidator.hpp"
 | 
|---|
| [23958d] | 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"
 | 
|---|
| [649aaa] | 18 | 
 | 
|---|
| [1fd675] | 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"
 | 
|---|
| [6ba9ba] | 21 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
 | 
|---|
| [8ac11f] | 22 | #define paramtypes (std::string)(double)(unsigned int)(bool)(std::vector<std::string>)
 | 
|---|
| [07a47e] | 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")
 | 
|---|
| [6ba9ba] | 25 | #define paramdefaults (NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(PARAM_DEFAULT(true)) (PARAM_DEFAULT(std::vector<std::string>(1, std::string("pcp"))))
 | 
|---|
| [07a47e] | 26 | #define paramreferences (prefix)(distance)(order)(DoSaturation)(types)
 | 
|---|
| [23958d] | 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()))
 | 
|---|
| [1fd675] | 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
 | 
|---|
| [052bfd8] | 39 | #define MENUNAME "fragmentation"
 | 
|---|
 | 40 | #define MENUPOSITION 3
 | 
|---|
| [1fd675] | 41 | #define ACTIONNAME Fragmentation
 | 
|---|
| [7811bf] | 42 | #define TOKEN "fragment-molecule"
 | 
|---|
| [1fd675] | 43 | 
 | 
|---|
| [24fbf3] | 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"
 | 
|---|