source: src/Actions/CommandAction/StoreSessionAction.def@ 97dff0

Last change on this file since 97dff0 was 9e4655, checked in by Frederik Heber <heber@…>, 12 years ago

Added sessiontype option to StoreSessionAction.

  • Property mode set to 100644
File size: 1.4 KB
Line 
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>
10#include <string>
11
12#include "Parameters/Validators/DummyValidator.hpp"
13#include "Parameters/Validators/Specific/SessionTypeValidator.hpp"
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
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)
23#define paramvalids \
24(DummyValidator< boost::filesystem::path >()) \
25(SessionTypeValidator())
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.