Wrapper around libconfig that writes and reads files in XDG_CONFIG_HOME.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tastytea bb08020611
Added install instruction for Gentoo.
12 hours ago
src Put everything in the header. 17 hours ago
tests Added tests and made compiling the example optional. 13 hours ago
.drone.yml CI: Added tests and examples, fixed omission. 13 hours ago
.gitignore Added documentation generation 11 months ago
CMakeLists.txt Added tests and made compiling the example optional. 13 hours ago
Doxyfile Added documentation generation 11 months ago
README.md Added install instruction for Gentoo. 12 hours ago
generate_doc.sh Added documentation generation 11 months ago

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

Install

Gentoo

Add my repository and install it from there.

eselect repository enable tastytea
echo "dev-cpp/xdgcfg" >> /etc/portage/package.accept_keywords/xdgcfg
emaint sync -r tastytea
emerge -a dev-cpp/xdgcfg

From source

Copy xdgcfg.hpp into a folder where your project can find it.

mkdir build
cd build
cmake ..
make
make install

CMake options

  • -DWITH_TESTS=YES to compile the tests.
  • -DWITH_EXAMPLES=YES to compile the example.

Documentation

xdgcfg.hpp has explanatory comments in it and there is an example. The reference is also available at doc.schlomp.space/xdgcfg/.