PROforma reads the initial configuration information from a special file called PROforma_cfg. You can specify the directory where this file should be searched when executing PROforma.
Each line in the configuration file is interpreted as a configuration command. Empty lines are discarded as comments. All the other lines are divided in two types, commands and definitions of configuration constants. The lines with a command have a fixed format : the first character is the actual command, the second character should be a space, and the rest of the line is the parameter. All lines which don't have a space as second character are considered as configuration constants.
The configuration commands currently supported by ProWesS are :
PROforma can also be configured further while it is already active. PROforma contains a special entry point which allows you to pass configuration lines which are then processed.
The 'PROforma DLL' thing has a CNFG extension which is used for this purpose. This extension accesses a function which accepts a character array as parameter ("char *"). This string is handled as if it was a line in the configuration file. It is thus possible (as mentioned in the previous section) to add printer drivers or fonts, change the default driver etc.
The call to this routine can be done as follows :
#include "thing_h" #include "PROforma_h" ... Error err; /* the error returned by the config routine */ char *str; /* the config line which is passed */ ... err=THINGCall(PF_THING_NAME,PF_THING_CNFG,1,str); if (err) ... /* error handling */ ...