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
config_map_itr;
48 static prefs *singleton();
79 void add_config_file(
const std::string &configfile);
84 std::string to_string();
97 virtual bool has_section(
const std::string §ion);
102 virtual bool has_option(
const std::string §ion,
103 const std::string &option);
109 virtual const std::string get_string(
const std::string §ion,
110 const std::string &option,
111 const std::string &default_val);
117 virtual void set_string(
const std::string §ion,
118 const std::string &option,
119 const std::string &val);
125 virtual bool get_bool(
const std::string §ion,
126 const std::string &option,
132 virtual void set_bool(
const std::string §ion,
133 const std::string &option,
140 virtual long get_long(
const std::string §ion,
141 const std::string &option,
147 virtual void set_long(
const std::string §ion,
148 const std::string &option,
155 virtual double get_double(
const std::string §ion,
156 const std::string &option,
162 virtual void set_double(
const std::string §ion,
163 const std::string &option,
167 virtual std::vector<std::string> _sys_prefs_filenames();
168 virtual void _read_files(
const std::vector<std::string> &filenames);
169 virtual char * option_to_env(std::string section, std::string option);
173 config_map_t d_config_map;
std::map< std::string, std::map< std::string, std::string > >::iterator config_map_itr
Definition: prefs.h:34
std::map< std::string, std::string >::iterator config_map_elem_itr
Definition: prefs.h:36
#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:45
Include this header to use the message passing features.
Definition: logger.h:695
boost::mutex mutex
Definition: thread.h:48
std::map< std::string, std::string > config_map_elem_t
Definition: prefs.h:35
std::map< std::string, std::map< std::string, std::string > > config_map_t
Definition: prefs.h:33