Elm
1.0
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 | |
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 void | process (String arg)=0 |
virtual char | shortName (void) |
virtual CString | longName (void) |
Protected Member Functions | |
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) |
Additional Inherited Members | |
Protected Attributes inherited from elm::option::Option | |
cstring | desc |
Value type independent parts of a value option.
elm::option::AbstractValueOption::AbstractValueOption | ( | const Make & | make | ) |
Constructor with an initializer as in the example velow:
make | Current initializer. |
elm::option::AbstractValueOption::AbstractValueOption | ( | Manager & | man | ) |
Build an abstract value option.
man | Owner option manager. |
elm::option::AbstractValueOption::AbstractValueOption | ( | Manager & | man, |
int | tag, | ||
... | |||
) |
Constructor.
man | Owner manager. |
tag | First tag. |
... | Tag and arguments. |
References elm::option::Option::init().
Constructor.
man | Owner manager. |
tag | First tag. |
args | Tag and arguments. |
References elm::option::Option::init().
|
virtual |
If the option requires an argument, get the description of the argument.
Implements elm::option::Option.
|
protectedvirtual |
Handle a configuration tag and its value. May be override for extending the Option class but do no forget to call back the original configure() method.
manager | Owner manager. |
tag | Current tag. |
args | List of arguments. |
Reimplemented from elm::option::Option.
Reimplemented in elm::option::ValueOption< T >, elm::option::ValueOption< int >, and elm::option::ValueOption< string >.
References elm::option::arg_desc, elm::option::arg_optional, elm::option::arg_required, elm::option::Option::configure(), elm::option::Option::desc, elm::option::description, elm::VarArg::next(), elm::option::optional, and elm::option::require.
Referenced by elm::option::ValueOption< string >::configure().
|
virtual |
Get the description of the option.
Reimplemented from elm::option::Option.
References elm::option::Option::desc.
|
virtual |
Get the argument usage type of this function.
Implements elm::option::Option.