Command
0.3
|
#include <multiValue.h>
Public Member Functions | |
MultiValue (std::string separator, Parameter *parameter) | |
virtual | ~MultiValue () |
virtual void | handle () |
virtual bool | understand (const std::string &value) |
virtual bool | isRequired () |
virtual bool | isUsed () |
virtual unsigned int | valuePosition (const std::string &value) |
![]() | |
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 | |
Parameter * | parameter |
std::vector< std::string > | values |
std::string | separator |
![]() | |
bool | used = false |
Additional Inherited Members | |
![]() | |
typedef class Parameter | Type |
Multiple Value Parameter decorator. Allows Parameters to understand many values.
Example:
Example usage:
|
inline |
Default constructor.
parameter | Parameter which will be treated as containing multiple values |
|
inlinevirtual |
Default destructor. Releases allocated memory
|
inlinevirtual |
Wrapper method around passed Parameter::handle().
Method used for handling method calls linked with this Parameter
Implements command::Parameter.
|
inlinevirtual |
Wrapper method around passed Parameter::isRequired(). Indicates if current Parameter is required.
Reimplemented from command::Parameter.
|
inlinevirtual |
Wrapper method around passed Parameter::isUsed().
Indicates if current Parameter has been already used
Reimplemented from command::Parameter.
|
inlinevirtual |
Wrapper method around passed Parameter::understand()
argv | command line value against which test will be made |
Method used for checking if the given user value understandable for parameter.
Implements command::Parameter.
|
inlinevirtual |
Wrapper method around passed Parameter::valuePosition().
Implements command::Parameter.
|
protected |
Parameter which will be treated as containing multiple values