资 源 简 介
The goal of libcconf is to provide a mechanism for working with configuration files, environment variables, and command-line arguments, such that the user need only specify documentation strings, default values, etc. in one place. It was created to answer the specific need for accurate real-time feedback while changing daemon configuration.
By adding entries to a configuration database, you get automatically-generated argument parsing, targeted documentation, and error checking with meaningful error messages.
furthermore, it provides a mechanism for listening to and validating configuration changes while the user"s program is running. An external process can set a configuration value, which will be automatically checked for validity before notifying the user program via a callback function.
It is my hope that I"m not reinventing any wheels here, and that this project might be useful to you.