summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/prefs.cc
Commit message (Collapse)AuthorAgeFilesLines
* runtime: Explicitly convert path to string to fix MSVC build.Ryan Volz2021-06-011-1/+1
| | | | Signed-off-by: Ryan Volz <ryan.volz@gmail.com>
* runtime: Save prefs safely by atomic renameThomas Habets2021-05-021-7/+24
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* runtime: Access d_config_map cleanerThomas Habets2021-05-021-19/+8
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* runtime: Use mutex for prefsThomas Habets2021-05-021-3/+9
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* runtime: Simplify prefsThomas Habets2021-05-021-151/+125
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* Replace boost::filesystem with std::filesystemZackery Spytz2021-03-131-5/+3
| | | | Signed-off-by: Zackery Spytz <zspytz@gmail.com>
* Replace BOOST_FOREACH with C++11 range forThomas Habets2020-03-271-3/+2
|
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* Fix all formatting issuesMartin Braun2020-01-101-1/+2
| | | | | This fixes every leftover file in the GNU Radio source tree to match our clang-format definition.
* runtime: add GR_PREFS_PATH env variable searchJosh Morman2020-01-061-2/+1
| | | | | | | When looking for the config file, allow the env variable GR_PREFS_PATH to be searched so that multiple installations of GR each with its own prefs can be used, similar to what is currently done in GRC
* clang-tidy in gnuradio-runtime: use empty() instead of size()!=0Marcus Müller2019-08-221-3/+3
|
* clang-tidy: misc-throw-by-value-catch-by-referenceAnders Kalør2019-08-151-1/+1
| | | | | Exceptions should be thrown by value and caught by reference. Closes #2708
* clang-format: Ordering all the includesMarcus Müller2019-08-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clang-format: ordering includes in gnuradio-runtime clang-format: ordering includes in gr-filter clang-format: ordering includes in gr-fft clang-format: ordering includes in gr-audio clang-format: ordering includes in gr-analog clang-format: ordering includes in gr-fec clang-format: ordering includes in gr-wavelet clang-format: ordering includes in gr-zeromq clang-format: ordering includes in gr-vocoder clang-format: ordering includes in gr-video-sdl clang-format: ordering includes in gr-trellis clang-format: ordering includes in gr-blocks clang-format: ordering includes in gr-digital clang-format: ordering includes in gr-uhd clang-format: ordering includes in gr-dtv clang-format: ordering includes in gr-channels clang-format: ordering includes in gr-qtgui clang_format.py: re-enable include reordering
* Tree: clang-format without the include sortingMarcus Müller2019-08-091-199/+182
|
* runtime: prefs: parse user config even if sys conf dir isn't a directoryMarcus Müller2019-06-181-9/+8
| | | | | | Before, this lead to systems where due to missing system paths, a user couldn't even use their own config file, because GNU Radio didn't even look for it.
* runtime: fixes prefs system to work with older boost 1.48 and gcc 4.6.3Johnathan Corgan2016-08-011-1/+2
|
* Rewrote the prefs parser to be based on boost::program_optionsMarcus Müller2016-05-121-101/+36
|
* added user settings directory as a gr::-accessible pathMarcus Müller2016-05-071-8/+5
| | | | | * removing a bit of "magic paths" in prefs.cc * added constant
* runtime: more generic version of prefs class.Tom Rondeau2015-04-021-8/+20
| | | | Adds another constructor to open a particular file to configure specific preferences.
* runtime: restructure prefs class for initializing prefs singleton.Tom Rondeau2014-06-271-13/+3
| | | | | | Boost filesystem has a bug initializing a static variable when linking statically. This forces the initialization to happen when the first call to prefs::singleton is made. We should really put the prefs ctor in private, but then swig complains.
* runtime: updates prefs to preserve format of preference file options that ↵Tom Rondeau2014-03-071-8/+38
| | | | are in quotes.
* runtime: converting runtime core to gr namespace, gnuradio include dir.Tom Rondeau2013-04-291-0/+401