![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/option/SwitchOption.h>
Inheritance diagram for SwitchOption:Public Member Functions | |
| SwitchOption (const Make &make) | |
| void | set (bool value) |
| bool | get (void) const |
| operator bool (void) const | |
| bool | operator* (void) const |
| SwitchOption & | operator= (bool value) |
| virtual usage_t | usage (void) |
| virtual CString | argDescription (void) |
| virtual void | process (string arg) |
Public Member Functions inherited from Option | |
| Option () | |
| Option (const Make &make) | |
| virtual | ~Option () |
| virtual cstring | description () |
Additional Inherited Members | |
Protected Attributes inherited from Option | |
| cstring | desc |
An option to handle simple switch option (boolean).
| SwitchOption | ( | const Make & | make | ) |
Build a switch option.
| make | Make information. |
If the option requires an argument, get the description of the argument.
Implements Option.
Referenced by SwitchOption::operator bool(), and SwitchOption::operator*().
References SwitchOption::get().
References SwitchOption::get().
|
inline |
References SwitchOption::set().
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. |
Implements Option.
Referenced by SwitchOption::operator=().
Get the argument usage type of this function.
Implements Option.
References elm::option::arg_none.