8 #if __cplusplus >= 201703L 11 #include <experimental/filesystem> 15 #include <libconfig.h++> 17 #if __cplusplus >= 201703L 18 namespace fs = std::filesystem;
20 namespace fs = std::experimental::filesystem;
23 using std::uint_fast8_t;
39 explicit xdgcfg(
const string &filename,
const string &subdir =
"");
46 const uint_fast8_t
read();
84 libconfig::Config _cfg;
const bool write()
Write the file.
Definition: xdgcfg.cpp:60
Definition: xdgcfg.hpp:25
const void set_verbose(bool verbose)
Sets verbosity.
Definition: xdgcfg.cpp:89
xdgcfg(const string &filename, const string &subdir="")
Checks if subdir is present, creates it if necessary.
Definition: xdgcfg.cpp:12
libconfig::Config & get_cfg()
Returns a reference to the config as libconfig::Config.
Definition: xdgcfg.cpp:79
const uint_fast8_t read()
Read the file.
Definition: xdgcfg.cpp:32
const fs::path get_filepath() const
Returns the complete filepath.
Definition: xdgcfg.cpp:84
const bool get_verbose() const
Returns verbosity.
Definition: xdgcfg.cpp:94