Command
0.3
|
#include <command.h>
Public Member Functions | |
Command (unsigned int argc, char *argv[], std::initializer_list< Parameter * > params) | |
~Command () | |
Additional Inherited Members | |
![]() | |
typedef class Parameter | Type |
![]() | |
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 () |
![]() | |
std::vector< Parameter * > | parameters |
std::vector< std::string > | values |
std::vector< bool > | understood |
std::vector< bool > | all_used |
![]() | |
bool | used = false |
Main class for handling user passed parameters from command line.
|
inline |
Default constructor.
argc | from the main function |
argv | from the main function |
params | initializer_list containing Parameter handlers responsible for correctly handle user data. |
|
inline |
Destructor. Releases allocated memory.