9 #include <jsoncpp/json/json.h> 27 explicit xdgjson(
const string &filename,
const string &subdir =
"");
const bool read()
Read the file.
Definition: xdgjson.cpp:40
xdgjson(const string &filename, const string &subdir="")
Checks if subdir is present, creates it if necessary.
Definition: xdgjson.cpp:21
const bool write()
Write the file.
Definition: xdgjson.cpp:58
Json::Value & get_json()
Returns a reference to the config as Json::Value.
Definition: xdgjson.cpp:75
const string get_filepath() const
Returns the complete filepath.
Definition: xdgjson.cpp:80
Definition: xdgjson.hpp:13