Next: , Previous: Helpers and Utilities, Up: Programming


6.4 Adding configuration options

When adding a configuration option, be sure to implement it at least in the following places:

6.5 Using configuration options

The options are usually read by a separate configuration parser, but can be modified by the data input parser if necessary and should be implemented by the generator as completely as possible. The option names in the config file are identical to the variable names and can be accessed via the cladogram pointer:

     int myTextSize = clad->labelFontSize;
     clad->monthsInYear = 10;

For a detailed overview and explanations, consult the Config Options chapter.

Also opening the 'gnuclad.h' header file and searching for CONFIG OPTIONS will take you straight to the declarations.