10 #include <libconfig.h++> 13 using std::uint_fast8_t;
29 explicit xdgcfg(
const string &filename,
const string &subdir =
"");
36 const uint_fast8_t
read();
74 libconfig::Config _cfg;
const string get_filepath() const
Returns the complete filepath.
Definition: xdgcfg.cpp:95
const bool write()
Write the file.
Definition: xdgcfg.cpp:71
Definition: xdgcfg.hpp:15
const void set_verbose(bool verbose)
Sets verbosity.
Definition: xdgcfg.cpp:100
xdgcfg(const string &filename, const string &subdir="")
Checks if subdir is present, creates it if necessary.
Definition: xdgcfg.cpp:23
libconfig::Config & get_cfg()
Returns a reference to the config as libconfig::Config.
Definition: xdgcfg.cpp:90
const uint_fast8_t read()
Read the file.
Definition: xdgcfg.cpp:43
const bool get_verbose() const
Returns verbosity.
Definition: xdgcfg.cpp:105