Wrapper around jsoncpp that writes and reads files in the XDG configuration directory.
|
||
---|---|---|
src | ||
.drone.yml | ||
.gitignore | ||
CMakeLists.txt | ||
Doxyfile | ||
generate_doc.sh | ||
README.md |
xdgjson is a very simple wrapper around jsoncpp written in C++. It reads
and writes files in ${XDG_CONFIG_HOME}
. It creates subdirectories if
necessary.
Dependencies
- C++ compiler (Tested: g++ 5/6/7/8)
- cmake
- pkgconfig
- jsoncpp
- libxdg-basedir
Usage
You can create dynamic and static libraries:
mkdir build
cd build
cmake ..
make
make install
Or just copy xdgjson.hpp
and xdgjson.cpp
into your project folder.
Documentation
xdgjson.hpp
has explanatory comments in it and there is an
example. The reference is also available at
doc.schlomp.space/xdgjson/.