Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/option/Option.h>
Classes | |
class | Make |
Public Member Functions | |
Option () | |
Option (const Make &make) | |
virtual | ~Option () |
virtual cstring | description () |
virtual usage_t | usage ()=0 |
virtual cstring | argDescription ()=0 |
virtual void | process (String arg)=0 |
Protected Attributes | |
cstring | desc |
Base class of classes used for representing options with the OptionManager class.
|
inline |
|
inlinevirtual |
|
pure virtual |
If the option requires an argument, get the description of the argument.
Implemented in EnumOption< T >, AbstractValueOption, StringList, and SwitchOption.
Referenced by Manager::displayHelp().
|
virtual |
Display the name of the option to the given output stream.
out | Stream to output to. Get the single-character short name of the option. |
Get the multi-character long name of the option.
Get the description of the option.
Reimplemented in AbstractValueOption.
References Option::desc.
Referenced by Manager::displayHelp().
This method is called by the option manager when the option is encountered.
arg | If the option requires an argument, the value of the argument. |
Implemented in EnumOption< T >, StringList, ValueOption< T >, ListOption< T >, and SwitchOption.
|
pure virtual |
Get the argument usage type of this function.
Implemented in EnumOption< T >, AbstractValueOption, StringList, and SwitchOption.
Referenced by Manager::displayHelp().
|
protected |