Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/option/IntOption.h>
Public Member Functions | |
IntOption (Manager &manager, char short_name, CString description, CString arg_description, int value=0) | |
IntOption (Manager &manager, CString long_name, CString description, CString arg_description, int value=0) | |
IntOption (Manager &manager, char short_name, CString long_name, CString description, CString arg_description, int value=0) | |
virtual void | process (String arg) |
Public Member Functions inherited from elm::option::ValueOption< int > | |
ValueOption (void) | |
ValueOption (const Make &make) | |
ValueOption (Manager &man, int tag...) | |
ValueOption (Manager &man, int tag, VarArg &args) | |
ValueOption (Manager &man, char s, cstring desc, cstring adesc, const int &val=type_info< int >::null) | |
ValueOption (Manager &man, cstring l, cstring desc, cstring adesc, const int &_val=type_info< int >::null) | |
ValueOption (Manager &man, char s, cstring l, cstring desc, cstring adesc, const int &_val=type_info< int >::null) | |
const int & | get (void) const |
void | set (const int &value) |
operator const int & (void) const | |
ValueOption< int > & | operator= (const int &value) |
const int & | operator* (void) const |
operator bool (void) const | |
const int & | value (void) const |
Public Member Functions inherited from elm::option::AbstractValueOption | |
AbstractValueOption (const Make &make) | |
AbstractValueOption (Manager &man) | |
AbstractValueOption (Manager &man, int tag,...) | |
AbstractValueOption (Manager &man, int tag, VarArg &args) | |
virtual cstring | description (void) |
virtual usage_t | usage (void) |
virtual cstring | argDescription (void) |
Public Member Functions inherited from elm::option::Option | |
Option (void) | |
Option (const Make &make) | |
virtual | ~Option (void) |
void | output (io::Output &out) |
virtual char | shortName (void) |
virtual CString | longName (void) |
Additional Inherited Members | |
Protected Member Functions inherited from elm::option::ValueOption< int > | |
virtual void | configure (Manager &manager, int tag, VarArg &args) |
Protected Member Functions inherited from elm::option::Option | |
void | init (Manager &manager, int tag,...) |
void | init (Manager &manager, int tag, VarArg &args) |
Protected Attributes inherited from elm::option::Option | |
cstring | desc |
This class is used for getting integer option usually marked by simple flag.
|
virtual |
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. |
Reimplemented from elm::option::ValueOption< int >.
References elm::io::in, elm::io::Input::scanLong(), and elm::option::ValueOption< int >::set().