[bae7bc] | 1 | /*
|
---|
| 2 | * ParseFragmentJobsAction.def
|
---|
| 3 | *
|
---|
| 4 | * Created on: Mar 04, 2013
|
---|
| 5 | * Author: heber
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | // all includes and forward declarations necessary for non-integral types below
|
---|
| 9 | #include <boost/filesystem/path.hpp>
|
---|
| 10 | #include <vector>
|
---|
| 11 |
|
---|
| 12 | #include "Parameters/Validators/RangeValidator.hpp"
|
---|
| 13 | #include "Parameters/Validators/Ops_Validator.hpp"
|
---|
| 14 | #include "Parameters/Validators/STLVectorValidator.hpp"
|
---|
| 15 | #include "Parameters/Validators/Specific/ParserFileValidator.hpp"
|
---|
| 16 | #include "Parameters/Validators/Specific/FilePresentValidator.hpp"
|
---|
| 17 |
|
---|
| 18 | // i.e. there is an integer with variable name Z that can be found in
|
---|
| 19 | // ValueStorage by the token "Z" -> first column: int, Z, "Z"
|
---|
| 20 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
|
---|
| 21 | #define paramtypes (std::vector< boost::filesystem::path >)(boost::filesystem::path)(unsigned int)
|
---|
| 22 | #define paramtokens ("fragment-jobs")("fragment-path")("grid-level")
|
---|
| 23 | #define paramdescriptions ("vector of fragment files")("prefix of each fragment file")("resolution of multigrid")
|
---|
| 24 | #define paramdefaults (NOPARAM_DEFAULT)(NOPARAM_DEFAULT)(PARAM_DEFAULT(5))
|
---|
| 25 | #define paramreferences (jobfiles)(path)(level)
|
---|
| 26 | #define paramvalids \
|
---|
| 27 | (STLVectorValidator< std::vector< boost::filesystem::path > >(ParserFileValidator() && FilePresentValidator())) \
|
---|
| 28 | (FilePresentValidator()) \
|
---|
| 29 | (RangeValidator< unsigned int >(1, 10))
|
---|
| 30 |
|
---|
| 31 | #undef statetypes
|
---|
| 32 | #undef statereferences
|
---|
| 33 |
|
---|
| 34 | // some defines for all the names, you may use ACTION, STATE and PARAMS
|
---|
| 35 | #define CATEGORY Fragmentation
|
---|
| 36 | #define MENUNAME "fragmentation"
|
---|
| 37 | #define MENUPOSITION 5
|
---|
| 38 | #define ACTIONNAME ParseFragmentJobs
|
---|
| 39 | #define TOKEN "parse-fragment-jobs"
|
---|
| 40 |
|
---|
| 41 |
|
---|
| 42 | // finally the information stored in the ActionTrait specialization
|
---|
| 43 | #define DESCRIPTION "store all selected atoms as a single fragment with dangling bonds satured by hydrogen"
|
---|
| 44 | #undef SHORTFORM
|
---|