#include <parseparams.hh>
process the parameter string. Returns the number of keywords found or -1 for error.
the possible parameter types used for add()
Enumerator |
---|
param_type_int |
|
param_type_double |
|
param_type_string |
|
r_Parse_Params::r_Parse_Params |
( |
void |
| ) |
|
default constructor, should not be used
r_Parse_Params::r_Parse_Params |
( |
unsigned int |
num | ) |
|
constructor, gets descriptor of the values to scan for
r_Parse_Params::~r_Parse_Params |
( |
void |
| ) |
|
int r_Parse_Params::add |
( |
const char * |
key, |
|
|
void * |
store, |
|
|
parse_param_type |
type |
|
) |
| |
add parameters to the list
int r_Parse_Params::process |
( |
const char * |
str | ) |
const |
process parameter string
Add a parameter to the list. key is the keyword, e.g. ``quality'', type is one of the available types and describes the data type of the parameter and store is a pointer to a variable of this type that will be updated by process() if the parameter is encountered there. The variable pointed to by store must not be initalized except for param_type_string where it must be set to NULL before calling process() for the first time. The contents of a string variable must be freed by the caller by first checking whether the variable is NULL and if not doing a delete [] .
const unsigned int r_Parse_Params::granularity |
|
staticprotected |
unsigned int r_Parse_Params::maxnum |
|
protected |
unsigned int r_Parse_Params::number |
|
protected |
The documentation for this class was generated from the following file: