Good simple configuration library for a big C ++ project?

We are developing a fairly large project in C ++, where many components require configuration parameters. We would like to use a central place to configure everything (for example, the registry), preferably with a simple and simple graphical interface (for example, Firefox about:config) and a simple API.

I am pretty sure that many applications have this problem, but could not find accessible libraries that can be easily used for this. Does anyone know of a good (preferably free) library to use for this?

This should work with cross-platform on Windows and Linux.

+5
source share
6 answers

boost :: program_options provides unified (and cross-platform) support for command-line configuration, environment variables, and configuration files . It seems that it should scale to several bits of a large software system that registers interest in various parameters (for example, a group of options ). Not much help with the GUI or persistence of things (but then what is wrong with editing the configuration file with a text editor?).

+7
source

I used libconfig before, and LGPL works well. http://www.hyperrealm.com/libconfig/

+3
source
0

pugxml. , .. . /, . .

0

Try Configurator. There is no GUI, but it is an easy-to-use and flexible C ++ library for parsing configuration files (from simple INIs to complex files with arbitrary insertion and semantic verification). Only for headlines and cross-platform. Uses Boost C ++ libraries.

See: http://opensource.dshevchenko.biz/configurator

0
source

All Articles