Assignments
Assignments
|
#include <cmdLineParser.h>
Public Member Functions | |
CmdLineParameters (const std::string &name) | |
~CmdLineParameters (void) | |
int | read (char **argv, int argc) |
Public Member Functions inherited from Util::CmdLineReadable | |
CmdLineReadable (const std::string &name) | |
virtual | ~CmdLineReadable (void) |
Public Attributes | |
int | count |
Type * | values |
Public Attributes inherited from Util::CmdLineReadable | |
bool | set |
std::string | name |
This templated class represents a named argument taking a variable number of values of of the prescribed type
Util::CmdLineParameters< Type >::CmdLineParameters | ( | const std::string & | name | ) |
Constructor with the name of the argument
Util::CmdLineParameters< Type >::~CmdLineParameters | ( | void | ) |
Destructor deallocating the array of values
|
virtual |
Try to set the argument from the list of command line arguments. Returns thenumber of arguments ingested.
Reimplemented from Util::CmdLineReadable.
int Util::CmdLineParameters< Type >::count |
The number of values the argument takes
Type* Util::CmdLineParameters< Type >::values |
The values the parameter has been set to