- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/CommandAction/HelpAction.def
rdac853c r6ba9ba 7 7 8 8 // all includes and forward declarations necessary for non-integral types below 9 #include <string> 10 #include <vector> 9 11 12 #include "Parameters/Validators/DiscreteValidator.hpp" 13 #include "Parameters/Validators/Ops_Validator.hpp" 14 #include "Parameters/Validators/Specific/ActionNameValidator.hpp" 10 15 11 16 // i.e. there is an integer with variable name Z that can be found in 12 17 // ValueStorage by the token "Z" -> first column: int, Z, "Z" 13 // "undefine" if no parameters are required, use (NO DEFAULT) for each (undefined) default value18 // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value 14 19 #define paramtypes (std::string) 15 20 #define paramtokens ("actionname") 16 21 #define paramdescriptions ("Name of an action whose option list is then given") 17 #define paramdefaults ( "none")22 #define paramdefaults (PARAM_DEFAULT(std::string("none"))) 18 23 #define paramreferences (actionname) 24 #define paramvalids \ 25 (DiscreteValidator<std::string>(std::vector<std::string>(1, std::string("none"))) || ActionNameValidator()) 26 // NOTE: The _default_ value MUST NOT require validation via ActionNameValidator! 27 // This will trigger an infinite loop of ActionRegistry::fillRegistry() calls as ActionRegistry is 28 // at the time of the filling on of the default values not yet completely constructed! 19 29 20 30 #undef statetypes
Note:
See TracChangeset
for help on using the changeset viewer.