Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/option/ValueOption.h>
Classes | |
class | Make |
Public Member Functions | |
ValueOption (void) | |
ValueOption (const Make &make) | |
const T & | get (void) const |
void | set (const T &value) |
operator const T & (void) const | |
ValueOption< T > & | operator= (const T &value) |
const T & | operator* (void) const |
operator bool (void) const | |
virtual void | process (String arg) |
const T & | value (void) const |
Public Member Functions inherited from AbstractValueOption | |
AbstractValueOption (const Make &make) | |
AbstractValueOption (Manager &man) | |
cstring | description (void) override |
usage_t | usage (void) override |
cstring | argDescription (void) override |
Public Member Functions inherited from Option | |
Option () | |
Option (const Make &make) | |
virtual | ~Option () |
Additional Inherited Members | |
Protected Attributes inherited from Option | |
cstring | desc |
A generic option template for option receiving an argument. It only requires to implement the process() virtual function.
T | Type of value of the argument. |
|
inline |
|
inline |
|
inline |
Get the argument value of the option.
Referenced by ValueOption< T >::operator bool(), ValueOption< T >::operator const T &(), and ValueOption< T >::operator*().
References ValueOption< T >::get().
|
inline |
References ValueOption< T >::get().
|
inline |
Same as get().
References ValueOption< T >::get().
|
inline |
Same as set().
References ValueOption< T >::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.
|
inline |
Set the value of the option argument.
value | Value to set. |
References ValueOption< T >::value().
Referenced by ValueOption< T >::operator=().
Referenced by ValueOption< T >::set().