| Rev | Line |  | 
|---|
| [bad589] | 1 | /* | 
|---|
|  | 2 | * StoreSessionAction.def | 
|---|
|  | 3 | * | 
|---|
|  | 4 | *  Created on: Aug 23, 2013 | 
|---|
|  | 5 | *      Author: heber | 
|---|
|  | 6 | */ | 
|---|
|  | 7 |  | 
|---|
|  | 8 | // all includes and forward declarations necessary for non-integral types below | 
|---|
|  | 9 | #include <boost/filesystem/path.hpp> | 
|---|
| [9e4655] | 10 | #include <string> | 
|---|
| [bad589] | 11 |  | 
|---|
|  | 12 | #include "Parameters/Validators/DummyValidator.hpp" | 
|---|
| [9e4655] | 13 | #include "Parameters/Validators/Specific/SessionTypeValidator.hpp" | 
|---|
| [bad589] | 14 |  | 
|---|
|  | 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" | 
|---|
|  | 17 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value | 
|---|
| [9e4655] | 18 | #define paramtypes (boost::filesystem::path)(std::string) | 
|---|
|  | 19 | #define paramtokens ("store-session")("session-type") | 
|---|
|  | 20 | #define paramdescriptions ("filename to store session to")("what file type of session to store") | 
|---|
|  | 21 | #define paramdefaults (NOPARAM_DEFAULT)(PARAM_DEFAULT("cli")) | 
|---|
|  | 22 | #define paramreferences (filename)(sessiontype) | 
|---|
| [bad589] | 23 | #define paramvalids \ | 
|---|
| [9e4655] | 24 | (DummyValidator< boost::filesystem::path >()) \ | 
|---|
|  | 25 | (SessionTypeValidator()) | 
|---|
| [bad589] | 26 |  | 
|---|
|  | 27 | #define statetypes (unsigned int) | 
|---|
|  | 28 | #define statereferences (oldverbosity) | 
|---|
|  | 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 5 | 
|---|
|  | 34 | #define ACTIONNAME StoreSession | 
|---|
|  | 35 | #define TOKEN "store-session" | 
|---|
|  | 36 |  | 
|---|
|  | 37 |  | 
|---|
|  | 38 | // finally the information stored in the ActionTrait specialization | 
|---|
|  | 39 | #define DESCRIPTION "stores the current session as a sequence of actions" | 
|---|
|  | 40 | #undef SHORTFORM | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.