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;
static const int LONG_FLAG
Number of characters reserved for printing long version of commandline flag.
CmdLineOptions(const CmdLineOptions &)
Copying not allowed.
std::map< std::string, CmdLineOptionParser * >::const_iterator constMapIter
For traversing const maps.
void parse(char *argv[], int argc)
std::string progName_
The name of the program.
virtual ~CmdLineOptions()
static const std::string VERBOSE_SWITCH
Switch for verbose output listing scheduler modules.
std::map< std::string, CmdLineOptionParser * >::value_type valType
For adding new values to maps.
static const int SHORT_FLAG
Number of characters reserved for printing short version of commandline flag.
std::string version_
The version of the program.
bool optionGiven(std::string key) const
virtual bool isVerboseSwitchDefined() const
CmdLineOptions & operator=(const CmdLineOptions &)
Assignment not allowed.
static const std::string VERBOSE_SPAM_SWITCH
Switch for verbose output listing spam from scheduler internals.
virtual bool isVerboseSpamSwitchDefined() const
virtual void printHelp() const
std::map< std::string, CmdLineOptionParser * >::iterator mapIter
For traversing non-const maps.
virtual void printVersion() const =0
std::string description_
The description of usage of program.