Command
0.3
|
#include <grouped.h>
Public Member Functions | |
Grouped (std::initializer_list< Parameter * > params, std::string description="Grouped") | |
virtual | ~Grouped () |
virtual void | handle () |
virtual bool | understand (const std::string &value) |
virtual bool | hungryForValue () |
virtual unsigned int | valuePosition (const std::string &) |
void | releaseMemory () |
![]() | |
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 | |
std::vector< Parameter * > | parameters |
std::vector< std::string > | values |
std::vector< bool > | understood |
std::vector< bool > | all_used |
![]() | |
bool | used = false |
Additional Inherited Members | |
![]() | |
typedef class Parameter | Type |
Grouped Parameters decorator. Allows Parameters to understand be grouped together.
Example usage:
|
inline |
Default constructor.
params | Parameters which will be treated as grouped together |
|
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 |
Indicates if current Parameter has been already used
Reimplemented from command::Parameter.
|
inline |
Releases acquired memory
|
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 |
Parameters which will be treated as grouped together