23.05.2014 Views

Athena Developer Guide

Athena Developer Guide

Athena Developer Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Athena</strong> Chapter 13 Framework services Version/Issue: 2.0.0<br />

The value must be an array of one or more values<br />

e.g. {true};<br />

e.g. {“String”};<br />

e.g.: {true, false, true};<br />

e.g.: {124, -124, 135e2};<br />

e.g.: {123.53, -23.53, 123., 12.5e2};<br />

e.g.: {“String 1”, “String 2”, “String 3”};<br />

The job options compiler itself tests if the object or identifier already exists (i.e. has already been<br />

defined in an included file) and the type of the existing property. If the type is compatible and the object<br />

exists the compiler appends the value to the existing property. If the property does not exists then the<br />

append operation "+=" behaves as assignment operation “=”.<br />

13.3.2.3 Including other Job Option Files<br />

It is possible to include other job option files in order to use pre-defined options for certain objects. This<br />

is done using the #include directive:<br />

#include “filename.ext”<br />

The “filename.ext” can also contain the path where this file is located. The include directive can<br />

be placed anywhere in the job option file, but it is strongly recommended to place it at the very top of<br />

the file (as in C++).<br />

It is possible to use environment variables in the #include statement, either standalone or as part of a<br />

string. Both Unix style (“$environmentvariable”) and Windows style<br />

(“%environmentvariable%”) are understood (on both platforms!)<br />

As mentioned above, you can append values to vectors defined in an included job option file. The<br />

interpreter creates these vectors at the moment he interprets the included file, so you can only append<br />

elements defined in a file included before the append-statement!<br />

As in C/C++, an included job option file can include other job option files. The compiler checks itself<br />

whether the include file is already included or not, so there is no need for #ifndef statements as in C<br />

or C++ to check for multiple including.<br />

Sometimes it is necessary to over-ride a value defined previously (maybe in an include file). This is<br />

done by using an assign statement with the same object and Propertyname. The last value assigned is<br />

the valid value!<br />

page 102

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!