Go to the documentation of this file.
35 #ifndef TTA_CMD_LINE_OPTIONS_HH
36 #define TTA_CMD_LINE_OPTIONS_HH
59 void parse(
char* argv[],
int argc);
60 void parse(std::string argv[],
int argc);
61 void parse(std::vector<std::string> argv);
72 typedef std::map<std::string, CmdLineOptionParser*>::value_type
valType;
74 typedef std::map<std::string, CmdLineOptionParser*>::iterator
mapIter;
77 std::map<std::string, CmdLineOptionParser*>::const_iterator
constMapIter;
std::string description_
The description of usage of program.
static const std::string VERBOSE_SPAM_SWITCH
Switch for verbose output listing spam from scheduler internals.
static const int LONG_FLAG
Number of characters reserved for printing long version of commandline flag.
std::map< std::string, CmdLineOptionParser * >::value_type valType
For adding new values to maps.
bool optionGiven(std::string key) const
std::string progName_
The name of the program.
virtual ~CmdLineOptions()
CmdLineOptions(std::string description, std::string version="")
virtual bool isVerboseSwitchDefined() const
virtual void printHelp() const
void parse(char *argv[], int argc)
std::string version_
The version of the program.
CmdLineOptions & operator=(const CmdLineOptions &)
Assignment not allowed.
static const int SHORT_FLAG
Number of characters reserved for printing short version of commandline flag.
std::map< std::string, CmdLineOptionParser * >::iterator mapIter
For traversing non-const maps.
virtual void printVersion() const =0
std::map< std::string, CmdLineOptionParser * >::const_iterator constMapIter
For traversing const maps.
static const std::string VERBOSE_SWITCH
Switch for verbose output listing scheduler modules.
virtual bool isVerboseSpamSwitchDefined() const