![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/option/Option.h>
Inheritance diagram for Option: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 |
If the option requires an argument, get the description of the argument.
Implemented in AbstractValueOption, StringList, EnumOption< T >, and SwitchOption.
Referenced by Manager::displayHelp().
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 StringList, EnumOption< T >, ValueOption< T >, SwitchOption, and ListOption< T >.
Get the argument usage type of this function.
Implemented in AbstractValueOption, StringList, EnumOption< T >, and SwitchOption.
Referenced by Manager::displayHelp().
|
protected |