Go to the documentation of this file.
14 #ifndef PARAMETERS_INCLUDED
15 #define PARAMETERS_INCLUDED
55 void set_bool(
const string& key,
const bool value);
56 void set_double(
const string& key,
const double value);
57 void set_int(
const string& key,
const int value);
58 void set_string(
const string& key,
const string& value);
66 int get_int(
const string& key)
const;
69 bool get_bool(
const string& key)
const;
82 int fetch_double(
const string& key,
double& value)
const;
83 int fetch_int(
const string& key,
int& value)
const;
85 int fetch_string(
const string& key,
string& value)
const;
86 int fetch_bool(
const string& key,
bool& value)
const;
93 bool find_int(
const string& key)
const;
102 bool is_set(
const string& key)
const;
105 void print(
const string& indent =
"")
const;
109 void Register_int(
const string& key,
const int defvalue);
143 void dump(
const string& indent =
"")
const;
150 std::stringstream ss;
153 for (
size_t i = 0, n = v.size(); i < n; ++i) {
154 if (i > 0) ss <<
", ";
void set_bool(const string &key, const bool value)
bool find_string(const string &key) const
void set_VerboseLevel(const Bridge::VerboseLevel value)
void set_string(const string &key, const string &value)
void Register_int_vector(const string &key, const vector< int > &defvalue)
void set_double(const string &key, const double value)
map< string, int > m_map_int
bool find_bool(const string &key) const
map< string, vector< double > > m_map_double_vector
int get_int(const string &key) const
bool find_unsigned_long(const string &key) const
bool find_Parameters(const string &key) const
map< string, string > m_map_string
map< string, Parameters > m_map_parameters
void Register_string_vector(const string &key, const vector< string > &defvalue)
map< string, vector< int > > m_map_int_vector
map< string, double > m_map_double
void set_double_vector(const string &key, const vector< double > &value)
void Register_string(const string &key, const string &defvalue)
bool find_int_vector(const string &key) const
bool find_string_vector(const string &key) const
bool find_double_vector(const string &key) const
int fetch_bool(const string &key, bool &value) const
vector< int > get_int_vector(const string &key) const
static string to_string(const vector< T > &v)
map< string, vector< string > > m_map_string_vector
void print(const string &indent="") const
void set_string_vector(const string &key, const vector< string > &value)
int fetch_string_vector(const string &key, vector< string > &value) const
bool find_double(const string &key) const
int fetch_int_vector(const string &key, vector< int > &value) const
bool convert_to_bool(const string &) const
void dump(const string &indent="") const
int convert_to_int(const string &) const
void set_Parameters(const string &key, const Parameters &value)
bool get_bool(const string &key) const
double get_double(const string &key) const
static const std::string class_name
void set_int_vector(const string &key, const vector< int > &value)
unsigned long get_unsigned_long(const string &key) const
bool is_set(const string &key) const
void Register_int(const string &key, const int defvalue)
void set_int(const string &key, const int value)
double convert_to_double(const string &) const
int fetch_string(const string &key, string &value) const
int fetch_double(const string &key, double &value) const
Bridge::VerboseLevel get_VerboseLevel() const
string get_string(const string &key) const
Parameters get_Parameters(const string &key) const
bool find_int(const string &key) const
vector< double > get_double_vector(const string &key) const
int fetch_double_vector(const string &key, vector< double > &value) const
vector< string > get_string_vector(const string &key) const
int fetch_unsigned_long(const string &key, unsigned long &value) const
int fetch_int(const string &key, int &value) const
Parameters & lookup(const string &key)
void Register_double_vector(const string &key, const vector< double > &defvalue)
void Register_Parameters(const string &key, const Parameters &defvalue)
void Register_double(const string &key, const double defvalue)
Parameters lookup(const string &key) const
Bridge::VerboseLevel m_vlevel
int fetch_VerboseLevel(Bridge::VerboseLevel &value) const