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();
56 std::string to_string();
69 virtual bool has_section(
const std::string §ion);
74 virtual bool has_option(
const std::string §ion,
75 const std::string &option);
81 virtual const std::string get_string(
const std::string §ion,
82 const std::string &option,
83 const std::string &default_val);
89 virtual void set_string(
const std::string §ion,
90 const std::string &option,
91 const std::string &val);
97 virtual bool get_bool(
const std::string §ion,
98 const std::string &option,
104 virtual void set_bool(
const std::string §ion,
105 const std::string &option,
112 virtual long get_long(
const std::string §ion,
113 const std::string &option,
119 virtual void set_long(
const std::string §ion,
120 const std::string &option,
127 virtual double get_double(
const std::string §ion,
128 const std::string &option,
134 virtual void set_double(
const std::string §ion,
135 const std::string &option,
139 virtual std::vector<std::string> _sys_prefs_filenames();
140 virtual void _read_files();
141 virtual void _convert_to_map(
const std::string &conf);
142 virtual char * option_to_env(std::string section, std::string option);
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
boost::mutex mutex
Definition: thread.h:46
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