8 #if __cplusplus >= 201703L 11 #include <experimental/filesystem> 16 #include <libconfig.h++> 18 #if __cplusplus >= 201703L 19 namespace fs = std::filesystem;
21 namespace fs = std::experimental::filesystem;
24 using std::uint_fast8_t;
42 explicit xdgcfg(
const string &filename,
const string &subdir =
"");
87 libconfig::Config _cfg;
Definition: xdgcfg.hpp:28
xdgcfg(const string &filename, const string &subdir="")
Checks if subdir is present, creates it if necessary.
Definition: xdgcfg.cpp:8
libconfig::Config & get_cfg()
Returns a reference to the config as libconfig::Config.
Definition: xdgcfg.cpp:75
void set_verbose(bool verbose)
Sets verbosity.
Definition: xdgcfg.cpp:85
const fs::path get_filepath() const
Returns the complete filepath.
Definition: xdgcfg.cpp:80
uint_fast8_t read()
Read the file.
Definition: xdgcfg.cpp:28
bool get_verbose() const
Returns verbosity.
Definition: xdgcfg.cpp:90
bool write()
Write the file.
Definition: xdgcfg.cpp:56