Alphabetic Class Index   |   Class Inheritance Tree Index   |   Tool Index

Class: CommandLineUI

Parent class: UserInterface

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
privateprivate: 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.
Throws: Exception
public virtual bool getBoolean(const string& key)
Override getBoolean so that a missing flag is treated as a false value.
Throws: Exception

Operators


Alphabetic Class Index   |   Class Inheritance Tree Index   |   Tool Index