Configuration file routines

    #include <mplib1/cfg_file.h>

The configuration file routines provide a general mechanism for storing run-time configuration information. They provide a suite of routines to initialise, read, and evaluate configuration variables. To read an introduction to the users' view of these routines click here.

For examples of use click here.

Each set of variables and their corresponding values are held in a designated namespace. Each namespace is know by its list_name, and there is a default namespace where the list_name is NULL. Since most programs normally only need a single namespace there are a set of macros defined in the header file which automatically supply the NULL list_name. The macro definitions are shown below the corresponding private function they expand to.


The routines can split up into the following logical sections.

Initialisation

Reading variables

Setting Variables

Evaluating Variables

Miscelleaneous