Wrapper around libconfig that writes and reads files in XDG_CONFIG_HOME.
|
||
---|---|---|
src | ||
.drone.yml | ||
.gitignore | ||
CMakeLists.txt | ||
Doxyfile | ||
generate_doc.sh | ||
README.md |
xdgcfg is a very simple wrapper around libconfig 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
- libconfig++
- libxdg-basedir
Usage
You can create dynamic and static libraries:
mkdir build
cd build
cmake ..
make
make install
Or just copy xdgcfg.hpp
and xdgcfg.cpp
into your project folder.
Documentation
xdgcfg.hpp
has explanatory comments in it and there is an
example. The reference is also available at
doc.schlomp.space/xdgcfg/.