Class for parsing a string consisting of key=value pairs separated by ",".
More...
#include <parseparams.hh>
Class for parsing a string consisting of key=value pairs separated by ",".
◆ parse_param_type
the possible parameter types used for add()
| Enumerator |
|---|
| param_type_int | |
| param_type_double | |
| param_type_string | |
◆ r_Parse_Params() [1/2]
| r_Parse_Params::r_Parse_Params |
( |
void |
| ) |
|
|
default |
Possible parameter types and their corresponding C types are.
◆ r_Parse_Params() [2/2]
| r_Parse_Params::r_Parse_Params |
( |
unsigned int |
num | ) |
|
|
explicit |
constructor, gets descriptor of the values to scan for
◆ ~r_Parse_Params()
| r_Parse_Params::~r_Parse_Params |
( |
void |
| ) |
|
◆ add() [1/2]
| int r_Parse_Params::add |
( |
const char * |
key, |
|
|
void * |
store, |
|
|
parse_param_type |
type |
|
) |
| |
add parameters to the list
◆ add() [2/2]
| int r_Parse_Params::add |
( |
const std::string & |
key, |
|
|
void * |
store, |
|
|
parse_param_type |
type |
|
) |
| |
◆ process() [1/2]
| int r_Parse_Params::process |
( |
const char * |
str | ) |
const |
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 [] var. process parameter string
◆ process() [2/2]
| int r_Parse_Params::process |
( |
const char * |
str, |
|
|
char |
separator, |
|
|
bool |
withWhiteSpaces |
|
) |
| const |
◆ granularity
| const unsigned int r_Parse_Params::granularity |
|
staticprotected |
◆ maxnum
| unsigned int r_Parse_Params::maxnum {} |
|
protected |
◆ number
| unsigned int r_Parse_Params::number {} |
|
protected |
◆ params
The documentation for this class was generated from the following file: