Assignments
Assignments
|
#include <cmdLineParser.h>
Public Member Functions | |
CmdLineParameter (const std::string &name) | |
CmdLineParameter (const std::string &name, Type v) | |
int | read (char **argv, int argc) |
![]() | |
CmdLineReadable (const std::string &name) | |
virtual | ~CmdLineReadable (void) |
Public Attributes | |
Type | value |
![]() | |
bool | set |
std::string | name |
This templated class represents a named argument of the prescribed type
Util::CmdLineParameter< Type >::CmdLineParameter | ( | const std::string & | name | ) |
Constructor with the name of the argument
Util::CmdLineParameter< Type >::CmdLineParameter | ( | const std::string & | name, |
Type | v ) |
Constructor with the name of the argument and the default value
|
virtual |
Try to set the argument from the list of command line arguments. Returns thenumber of arguments ingested.
Reimplemented from Util::CmdLineReadable.
Type Util::CmdLineParameter< Type >::value |
The value the parameter has been set to