PUMA Library Reference Manual
|
#include <Puma/ConfOption.h>
Configuration option abstraction.
A configuration option has a name and an optional list of arguments. System priority configuration options have a lower priority than non-system options.
Public Member Functions | |
ConfOption (const char *option, bool system=false) | |
Constructor. | |
ConfOption (const char *option, const char *arg, bool system=false) | |
Constructor. | |
ConfOption (const char *option, const char *arg1, const char *arg2, bool system=false) | |
Constructor. | |
~ConfOption () | |
Destroy this option. | |
bool | isSystem () const |
Check if the option is an system priority option. | |
const char * | Name () const |
Get the name of the option. | |
unsigned int | Hash () const |
Get the hash value of the option's name. | |
unsigned | Arguments () const |
Get the number of option arguments. | |
const char * | Argument (unsigned n) const |
Get the n-th option argument. | |
void | addArgument (const char *arg) |
Add a further option argument. | |
|
inline |
Constructor.
option | The full name of the option. |
system | Has system priority or not. |
|
inline |
Constructor.
option | The full name of the option. |
arg | The argument value of the option. |
system | Has system priority or not. |
|
inline |
Constructor.
option | The full name of the option. |
arg1 | The first argument value of the option. |
arg2 | The second argument value of the option. |
system | Has system priority or not. |
|
inline |
Destroy this option.
|
inline |
Add a further option argument.
arg | The argument value. |
|
inline |
Get the n-th option argument.
n | The index of the argument to get. |
|
inline |
Get the number of option arguments.
|
inline |
Get the hash value of the option's name.
Allows faster comparison when searching for this option.
|
inline |
Check if the option is an system priority option.
|
inline |
Get the name of the option.