diff options
author | Tom Rondeau | 2013-02-16 14:39:28 -0500 |
---|---|---|
committer | Tom Rondeau | 2013-02-16 14:46:51 -0500 |
commit | 8827ecc87eca9a1e970dd2ba5da0731cd9db0e98 (patch) | |
tree | d47d45315130de88c14ea174d36e3086c86d7165 /gnuradio-core/src/lib/general/gr_prefs.h | |
parent | 6e2f2e4716bedb1317b44d5b03bde4468b2502fd (diff) | |
download | gnuradio-8827ecc87eca9a1e970dd2ba5da0731cd9db0e98.tar.gz gnuradio-8827ecc87eca9a1e970dd2ba5da0731cd9db0e98.tar.bz2 gnuradio-8827ecc87eca9a1e970dd2ba5da0731cd9db0e98.zip |
core: Making an all C++ version of the preferences/config file readers.
This replaces the Python config parser stuff; should have same functionality that we need.
Diffstat (limited to 'gnuradio-core/src/lib/general/gr_prefs.h')
-rw-r--r-- | gnuradio-core/src/lib/general/gr_prefs.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/general/gr_prefs.h b/gnuradio-core/src/lib/general/gr_prefs.h index b1c354bd3..90d602741 100644 --- a/gnuradio-core/src/lib/general/gr_prefs.h +++ b/gnuradio-core/src/lib/general/gr_prefs.h @@ -24,6 +24,7 @@ #include <gr_core_api.h> #include <string> +#include <gruel/thread.h> /*! * \brief Base class for representing user preferences a la windows INI files. @@ -39,6 +40,7 @@ public: static gr_prefs *singleton(); static void set_singleton(gr_prefs *p); + gr_prefs(); virtual ~gr_prefs(); /*! @@ -78,6 +80,14 @@ public: virtual double get_double(const std::string section, const std::string option, double default_val); + + protected: + virtual std::vector<std::string> _sys_prefs_filenames(); + virtual void _read_files(); + + private: + gruel::mutex d_mutex; + std::string d_configs; }; |