Frobby
0.9.5
|
#include <CliParams.h>
Public Types | |
typedef vector< Parameter * >::iterator | iterator |
typedef vector< Parameter * >::const_iterator | const_iterator |
Public Member Functions | |
CliParams () | |
const_iterator | begin () const |
const_iterator | end () const |
void | add (auto_ptr< Parameter > param) |
void | add (Parameter ¶m) |
void | add (ParameterGroup ¶ms) |
bool | hasParam (const string &name) const |
const Parameter & | getParam (const string &name) const |
Parameter & | getParam (const string &name) |
void | parseCommandLine (unsigned int tokenCount, const char **tokens) |
void | processOption (const string &optionName, const char **params, unsigned int paramCount) |
Private Attributes | |
vector< Parameter * > | _params |
vector< Parameter * > | _ownedParams |
ElementDeleter< vector< Parameter * > > | _paramsDeleter |
Definition at line 28 of file CliParams.h.
typedef vector<Parameter*>::const_iterator CliParams::const_iterator |
Definition at line 31 of file CliParams.h.
typedef vector<Parameter*>::iterator CliParams::iterator |
Definition at line 30 of file CliParams.h.
CliParams::CliParams | ( | ) |
Definition at line 46 of file CliParams.cpp.
void CliParams::add | ( | auto_ptr< Parameter > | param | ) |
Definition at line 88 of file CliParams.cpp.
void CliParams::add | ( | Parameter & | param | ) |
Definition at line 95 of file CliParams.cpp.
void CliParams::add | ( | ParameterGroup & | params | ) |
Definition at line 100 of file CliParams.cpp.
|
inline |
Definition at line 35 of file CliParams.h.
|
inline |
Definition at line 36 of file CliParams.h.
Parameter & CliParams::getParam | ( | const string & | name | ) |
Definition at line 116 of file CliParams.cpp.
const Parameter & CliParams::getParam | ( | const string & | name | ) | const |
Definition at line 112 of file CliParams.cpp.
bool CliParams::hasParam | ( | const string & | name | ) | const |
Definition at line 105 of file CliParams.cpp.
void CliParams::parseCommandLine | ( | unsigned int | tokenCount, |
const char ** | tokens | ||
) |
Definition at line 50 of file CliParams.cpp.
void CliParams::processOption | ( | const string & | optionName, |
const char ** | params, | ||
unsigned int | paramCount | ||
) |
Definition at line 74 of file CliParams.cpp.
|
private |
Definition at line 55 of file CliParams.h.
|
private |
Definition at line 54 of file CliParams.h.
|
private |
Definition at line 56 of file CliParams.h.