clockUtils
1.1
|
#include "clockUtils/argParser/argParserParameters.h"
#include <algorithm>
#include "clockUtils/argParser/ArgumentList.h"
#include "clockUtils/argParser/BasicVariable.h"
#include "clockUtils/argParser/Parser.h"
Go to the source code of this file.
Macros | |
#define | PARSE_ARGUMENTS(buffer, length) |
parses given list with given length use this method without filename More... | |
#define | PARSE_COMMANDLINE() |
parses command line Use this to parse the normal command line in the main function. It is identical to PARSE_ARGUMENTS(++argv, –argc) More... | |
#define | GETLASTPARSERERROR() |
returns the last error message if some appeared More... | |
#define | REGISTER_VARIABLE_INTERNAL(type, longname, shortname, value, description, required, multiple) |
registers a variable with a type, the variable and argument name, a default value and a description text for –help longname is also the variable name, shortname can be set to "" for no shortname variable will be initialized with default value right away More... | |
#define | REGISTER_VARIABLE(type, longname, shortname, value, description) |
registers a variable with a type, the variable and argument name, a default value and a description text for –help being optional longname is also the variable name, shortname can be set to "" for no shortname variable will be initialized with default value right away More... | |
#define | REGISTER_VARIABLE_REQUIRED(type, longname, shortname, value, description) |
registers a variable with a type, the variable and argument name, a default value and a description text for –help being required longname is also the variable name, shortname can be set to "" for no shortname variable will be initialized with default value right away if this variable isn't set, ClockError::INVALID_USAGE is returned More... | |
#define | REGISTER_VARIABLE_MULTIPLE(type, longname, shortname, value, description) |
registers a variable with a type, the variable and argument name, a default value and a description text for –help longname is also the variable name, shortname can be set to "" for no shortname variable will be initialized with default value right away this variable can be set multiple times, so the registered variable is a list More... | |
#define | REGISTER_VARIABLE_MULTIPLE_REQUIRED(type, longname, shortname, value, description) |
registers a variable with a type, the variable and argument name, a default value and a description text for –help being required longname is also the variable name, shortname can be set to "" for no shortname variable will be initialized with default value right away this variable can be set multiple times, so the registered variable is a list if this variable isn't set, ClockError::INVALID_USAGE is returned More... | |
#define | REGISTER_VARIABLE_ARGUMENTS(name) |
registers a variable where the arguments at the end are parsed into More... | |
#define | HELPSET() |
returns true if –help was set More... | |
#define | GETHELPTEXT() |
returns the help text More... | |