Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/ParserAction/SetParserParametersAction.def

    r41d023 r770ec6  
    77
    88// all includes and forward declarations necessary for non-integral types below
     9#include <vector>
     10#include <string>
    911
     12#include "Parameters/Validators/STLVectorValidator.hpp"
     13#include "Parameters/Validators/Specific/KeyValueValidator.hpp"
     14#include "Parameters/Validators/Specific/ParserTypeValidator.hpp"
    1015
    1116// i.e. there is an integer with variable name Z that can be found in
    1217// ValueStorage by the token "Z" -> first column: int, Z, "Z"
    13 // "undefine" if no parameters are required, use (NODEFAULT) for each (undefined) default value
    14 #define paramtypes (std::string)(std::string)
     18// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
     19#define paramtypes (std::string)(std::vector<std::string>)
    1520#define paramtokens ("set-parser-parameters")("parser-parameters")
    1621#define paramdescriptions ("name of the parser to change")("parameter (key = value;)")
    17 #define paramdefaults (NODEFAULT)(NODEFAULT)
     22#define paramdefaults (NOPARAM_DEFAULT)(NOPARAM_DEFAULT)
    1823#define paramreferences (parsername)(newparams)
     24#define paramvalids \
     25(ParserTypeValidator())\
     26(STLVectorValidator< std::vector<std::string> >(1, 99, KeyValueValidator()))
    1927
    2028#define statetypes (std::string)
Note: See TracChangeset for help on using the changeset viewer.