ConfigLib is a C++ library for reading and writing standard Unix and Windows .INI configuration files as easily as declaring a variable. It provides all the objects necessary to read any setting from a configuration file and write out changes while preserving comments. Using templates, any serializable object or primitive can be read from a configuration file and parsed automatically via the command line. It also includes common objects for handling settings beyond those of the C primitives.
Re: Alternative: Autoopt, part of Autogen A bit like Autoopt for configuration files, but this does not do code generation. Instead the focus is on the ability to add and remove configuration file ...