Command
0.3
|
#include <parameter.h>
Public Types | |
typedef class Parameter | Type |
Public Member Functions | |
Parameter (const std::string &description) | |
virtual void | handle ()=0 |
virtual bool | understand (const std::string &)=0 |
virtual bool | isRequired () |
virtual bool | isUsed () |
virtual bool | hungryForValue () |
virtual unsigned int | valuePosition (const std::string &)=0 |
![]() | |
Descriptive (const std::string &description) | |
const std::string & | describe () |
Protected Attributes | |
bool | used = false |
Base class for all the Arguments and Options.
Example: ./myprog ARGUMENT
|
inline |
Default constructor.
description | Description of current Argument |
|
pure virtual |
Method used for handling method calls linked with this Parameter
Implemented in command::Argument< ParameterType >, command::Grouped, command::MultiValue, command::Option< ParameterType >, command::Option< void >, and command::Required.
|
inlinevirtual |
Reimplemented in command::Grouped.
|
inlinevirtual |
Indicates if current Parameter is required
Reimplemented in command::MultiValue, and command::Required.
|
inlinevirtual |
Indicates if current Parameter has been already used
Reimplemented in command::MultiValue, and command::Required.
|
pure virtual |
Method used for checking if the given user value understandable for parameter.
Implemented in command::Argument< ParameterType >, command::Option< ParameterType >, command::Option< void >, command::Grouped, command::MultiValue, and command::Required.
|
pure virtual |
Implemented in command::Argument< ParameterType >, command::Grouped, command::Option< void >, command::MultiValue, command::Option< ParameterType >, and command::Required.
|
protected |
Variable indicating if current Parameter was already used or not