Rev | Line | |
---|
[1fd675] | 1 | /*
|
---|
[072f0e] | 2 | * OutputAsAction.def
|
---|
[1fd675] | 3 | *
|
---|
| 4 | * Created on: Aug 26, 2010
|
---|
| 5 | * Author: heber
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | // all includes and forward declarations necessary for non-integral types below
|
---|
[fc5c3a] | 9 | #
|
---|
[1fd675] | 10 |
|
---|
[23958d] | 11 | #include "Parameters/Validators/Ops_Validator.hpp"
|
---|
| 12 | #include "Parameters/Validators/Specific/FilePresentValidator.hpp"
|
---|
| 13 | #include "Parameters/Validators/Specific/ParserFileValidator.hpp"
|
---|
[649aaa] | 14 |
|
---|
[1fd675] | 15 | // i.e. there is an integer with variable name Z that can be found in
|
---|
| 16 | // ValueStorage by the token "Z" -> first column: int, Z, "Z"
|
---|
[6ba9ba] | 17 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
|
---|
[fc5c3a] | 18 | #define paramtypes (boost::filesystem::path)
|
---|
[072f0e] | 19 | #define paramtokens ("output-as")
|
---|
[fc5c3a] | 20 | #define paramdescriptions ("filename to write to")
|
---|
[e4afb4] | 21 | #undef paramdefaults
|
---|
[fc5c3a] | 22 | #define paramreferences (filename)
|
---|
[23958d] | 23 | #define paramvalids \
|
---|
| 24 | (!FilePresentValidator() && ParserFileValidator())
|
---|
[1fd675] | 25 |
|
---|
| 26 | #undef statetypes
|
---|
| 27 | #undef statereferences
|
---|
| 28 |
|
---|
| 29 | // some defines for all the names, you may use ACTION, STATE and PARAMS
|
---|
| 30 | #define CATEGORY World
|
---|
[052bfd8] | 31 | #define MENUNAME "world"
|
---|
| 32 | #define MENUPOSITION 7
|
---|
[072f0e] | 33 | #define ACTIONNAME OutputAs
|
---|
| 34 | #define TOKEN "output-as"
|
---|
[1fd675] | 35 |
|
---|
[24fbf3] | 36 |
|
---|
| 37 | // finally the information stored in the ActionTrait specialization
|
---|
[fc5c3a] | 38 | #define DESCRIPTION "write all atoms to given file"
|
---|
[e4afb4] | 39 | #undef SHORTFORM
|
---|
Note:
See
TracBrowser
for help on using the repository browser.