source: src/Actions/CommandAction/ElementDbAction.def@ eea0bb

Last change on this file since eea0bb was 95cfac, checked in by Frederik Heber <heber@…>, 11 years ago

Added FileSuffixValidator to all Actions where missing but appropriate.

  • also clean up some unnecessary includes.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 * ElementDbAction.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#include <sstream>
10
11#include "Parameters/Validators/Ops_Validator.hpp"
12#include "Parameters/Validators/Specific/FilePresentValidator.hpp"
13
14// i.e. there is an integer with variable name Z that can be found in
15// ValueStorage by the token "Z" -> first column: int, Z, "Z"
16// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
17#define paramtypes (boost::filesystem::path)
18#define paramtokens ("element-db")
19#define paramdescriptions ("path where the element databases can be found")
20#undef paramdefaults
21#define paramreferences (databasepath)
22#define paramvalids \
23(FilePresentValidator())
24
25#define statetypes (std::string)
26#define statereferences (undostring)
27
28// some defines for all the names, you may use ACTION, STATE and PARAMS
29#define CATEGORY Command
30#define MENUNAME "command"
31#define MENUPOSITION 2
32#define ACTIONNAME ElementDb
33#define TOKEN "element-db"
34
35
36// finally the information stored in the ActionTrait specialization
37#define DESCRIPTION "specify the path to a different element databases"
38#define SHORTFORM "e"
Note: See TracBrowser for help on using the repository browser.