Description:
This class implements a simple command line based user interface. A parameter may be specified on the command line as "-keyword value", where "keyword" need only be the unique initial characters in the actual keyword.
Embedded Classes:
CommandLineUI::KeyComparer
Data Fields | ||
private | private: map<string, Value*, CommandLineUI::KeyComparer> | values |
Constructors / Destructor | |
public | CommandLineUI(int argc, char** argv)Constructor. |
public | ~CommandLineUI() |
Methods | |||
public | virtual | Value* | extract(const string& key)Throws: Exception |
public | virtual | void | setValue(const string& key, Value* value)This is a read-only interface, so setting throws an exception. |
public | virtual | bool | getBoolean(const string& key)Override getBoolean so that a missing flag is treated as a false value. |
Operators |