Config Maker automates the creation of C++ classes that interpret configuration files.
The input files for Config Maker have a straightforward structure that follows ANTLR/grep-like notation. Each object name is followed by one or more configentries that look like "type entryname defaultvalue (comment)?". The type can be int, double, string or bool. If the basic type is followed by a number, the corresponding c++ object variable will be of type vector < basic type >. The number indicates the initial number of elements that are allocated for the vector, but the actual configuration file can contain more components. These are added using the push_back method. If there are fewer elements specified in the configuration file, the object variable will still contain the number of elements specified in the code. No warning will be issued.
The configentry specifies the name of the entry and the corresponding variable, which can be at least two characters long and contain characters and numbers (it is not case sensitive). The defaultvalue for the entry is optional. Each comment starts with // and is completely ignored.
Config Maker has some requirements: Python (for scons), scons, and antlr. Notably, it is no longer necessary to set CFMINC_DIR. Instead, the .inc files can be placed in /etc/cfmake.
In conclusion, Config Maker is a reliable and efficient tool for creating C++ classes that parse configuration files quickly and easily. Its easy-to-follow structure and requirements make it a must-try for software developers.
Version 0.6.2: N/A