| 1 | /* | 
|---|
| 2 | * BondLengthTableAction.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 |  | 
|---|
| 10 | #include "Graph/BondGraph.hpp" | 
|---|
| 11 |  | 
|---|
| 12 | #include "Parameters/Validators/Ops_Validator.hpp" | 
|---|
| 13 | #include "Parameters/Validators/Specific/FilePresentValidator.hpp" | 
|---|
| 14 | #include "Parameters/Validators/Specific/FileSuffixValidator.hpp" | 
|---|
| 15 |  | 
|---|
| 16 | // i.e. there is an integer with variable name Z that can be found in | 
|---|
| 17 | // ValueStorage by the token "Z" -> first column: int, Z, "Z" | 
|---|
| 18 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value | 
|---|
| 19 | #define paramtypes (boost::filesystem::path) | 
|---|
| 20 | #define paramtokens ("bond-table") | 
|---|
| 21 | #define paramdescriptions ("name of the bond length table file") | 
|---|
| 22 | #undef paramdefaults | 
|---|
| 23 | #define paramreferences (BondGraphFileName) | 
|---|
| 24 | #define paramvalids \ | 
|---|
| 25 | (FilePresentValidator() && (FileSuffixValidator("dat") || FileSuffixValidator("db"))) | 
|---|
| 26 |  | 
|---|
| 27 | #define statetypes (std::string) | 
|---|
| 28 | #define statereferences (undostring) | 
|---|
| 29 |  | 
|---|
| 30 | // some defines for all the names, you may use ACTION, STATE and PARAMS | 
|---|
| 31 | #define CATEGORY Command | 
|---|
| 32 | #define MENUNAME "command" | 
|---|
| 33 | #define MENUPOSITION 1 | 
|---|
| 34 | #define ACTIONNAME BondLengthTable | 
|---|
| 35 | #define TOKEN "bond-table" | 
|---|
| 36 |  | 
|---|
| 37 |  | 
|---|
| 38 | // finally the information stored in the ActionTrait specialization | 
|---|
| 39 | #define DESCRIPTION "specifying a table file with specific bond lengths to use in bond structure analysis" | 
|---|
| 40 | #define SHORTFORM "g" | 
|---|