External Parameter Input

IBG is designed as a C-function package for usage in other programs. The user interface is not part of IBG. Nonetheless, for some test examples, I have implemented a simple possibility to read external control parameter from a file. You can use this implementation (see the files ibgext.h ibgextref.c, mainext.c ) also as a pattern for your own implementation.

In this implementation, the initialization call

ibgExtInit("test.ibg");
reads the file test.ibg containing the parameters which may be controlled in this way. The file has to be written in a simple C-style syntax.

Allowed is a simple assignment syntax for scalar parameters, a call-like syntax for parameters with more than one component, and comments.

Scalar Parameters

There are scalar parameters which have to be defined by strings like

name = value;

Values are real or integer numbers.

Scalar parameters are:

Nonscalar Paramters

Some other parameters have more than one component. These parameters have to be defined by strings like

name(value1,value2,...,valueN);

 

Values are real or integer numbers. They may be omitted, in this case the are set to zero.

Comments

It is allowed to include comments into the file. Comments start with one of the follwing comment symbols:


!
?
%
#
//
--

and end with the next line end.