8 #if __cplusplus >= 201703L 11 #include <experimental/filesystem> 14 #include <jsoncpp/json/json.h> 16 #if __cplusplus >= 201703L 17 namespace fs = std::filesystem;
19 namespace fs = std::experimental::filesystem;
37 explicit xdgjson(
const string &filename,
const string &subdir =
"");
const bool read()
Read the file.
Definition: xdgjson.cpp:29
xdgjson(const string &filename, const string &subdir="")
Checks if subdir is present, creates it if necessary.
Definition: xdgjson.cpp:10
const bool write()
Write the file.
Definition: xdgjson.cpp:47
const fs::path get_filepath() const
Returns the complete filepath.
Definition: xdgjson.cpp:69
Json::Value & get_json()
Returns a reference to the config as Json::Value.
Definition: xdgjson.cpp:64
Definition: xdgjson.hpp:23