23 #ifndef INCLUDED_GR_PREFS_H 24 #define INCLUDED_GR_PREFS_H 33 typedef std::map<std::string, std::map<std::string, std::string>>
config_map_t;
34 typedef std::map<std::string, std::map<std::string, std::string>>::iterator
49 static prefs* singleton();
80 void add_config_file(
const std::string& configfile);
85 std::string to_string();
98 virtual bool has_section(
const std::string& section);
103 virtual bool has_option(
const std::string& section,
const std::string& option);
109 virtual const std::string get_string(
const std::string& section,
110 const std::string& option,
111 const std::string& default_val);
117 virtual void set_string(
const std::string& section,
118 const std::string& option,
119 const std::string& val);
126 get_bool(
const std::string& section,
const std::string& option,
bool default_val);
132 set_bool(
const std::string& section,
const std::string& option,
bool val);
139 get_long(
const std::string& section,
const std::string& option,
long default_val);
145 set_long(
const std::string& section,
const std::string& option,
long val);
152 get_double(
const std::string& section,
const std::string& option,
double default_val);
158 set_double(
const std::string& section,
const std::string& option,
double val);
161 virtual std::vector<std::string> _sys_prefs_filenames();
162 virtual void _read_files(
const std::vector<std::string>& filenames);
163 virtual char* option_to_env(std::string section, std::string option);
167 config_map_t d_config_map;
std::map< std::string, std::string >::iterator config_map_elem_itr
Definition: prefs.h:37
#define GR_RUNTIME_API
Definition: gnuradio-runtime/include/gnuradio/api.h:30
Base class for representing user preferences a la windows INI files.The real implementation is in Pyt...
Definition: prefs.h:46
std::map< std::string, std::map< std::string, std::string > > config_map_t
Definition: prefs.h:33
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
std::map< std::string, std::map< std::string, std::string > >::iterator config_map_itr
Definition: prefs.h:35
boost::mutex mutex
Definition: thread.h:48
std::map< std::string, std::string > config_map_elem_t
Definition: prefs.h:36