24#ifndef PARSE_PARAMS_HH_
25#define PARSE_PARAMS_HH_
81 int process(
const char *str,
char separator,
bool withWhiteSpaces)
const;
92 const char *
key = NULL;
Class for parsing a string consisting of key=value pairs separated by ",".
Definition parseparams.hh:40
parse_param_type
the possible parameter types used for add()
Definition parseparams.hh:44
@ param_type_double
Definition parseparams.hh:46
@ param_type_int
Definition parseparams.hh:45
@ param_type_string
Definition parseparams.hh:47
int process(const char *str, char separator, bool withWhiteSpaces) const
unsigned int number
Definition parseparams.hh:100
static const unsigned int granularity
Definition parseparams.hh:102
int add(const char *key, void *store, parse_param_type type)
add parameters to the list
parse_params_t * params
Definition parseparams.hh:98
int process(const char *str) const
Add a parameter to the list.
~r_Parse_Params(void)
destructor
unsigned int maxnum
Definition parseparams.hh:99
r_Parse_Params(unsigned int num)
constructor, gets descriptor of the values to scan for
r_Parse_Params(void)=default
Possible parameter types and their corresponding C types are.
int add(const std::string &key, void *store, parse_param_type type)
std::ostream & operator<<(std::ostream &s, const r_Parse_Params::parse_param_type &d)
Output stream operator for objects of type const r_Parse_Params::parse_param_type.
process the parameter string.
Definition parseparams.hh:91
const char * key
Definition parseparams.hh:92
parse_param_type type
Definition parseparams.hh:94
void * store
Definition parseparams.hh:93