25 #ifndef __CLOCKUTILS_ARGPARSER_PARSER_H__ 26 #define __CLOCKUTILS_ARGPARSER_PARSER_H__ 52 static ClockError parseArguments(
const char ** argv,
int argc);
60 return parseArguments(const_cast<const char **>(argv), argc);
66 static std::string getLastParserError();
92 static std::string getHelpText();
98 helpTexts.insert(line);
105 static std::vector<BasicVariable *> variableList;
110 static std::string error;
115 static std::vector<std::string> * arguments;
120 static bool errorOnFlag;
130 static std::map<std::string, std::string> helpTexts;
static void registerArgumentsVector(std::vector< std::string > *args)
registers a vector for arguments at end of input
base class for Variable handling
static bool wasHelpSet()
returns true if –help was found in argument line
static void addHelpTextLine(const std::pair< std::string, std::string > &line)
add a line for help text
static void setErrorOnFlag(bool b)
sets bool determining whether an error shall occure if an extra flag is given that wasn't registered ...
#define CLOCK_ARGPARSER_API
class handling all known variables being able to be parsed and offering parse functionality ...
static ClockError parseArguments(char **argv, int argc)
parses argument line