next up previous contents
Next: Software Architecture Up: Overflow User's Manual Previous: Exceptions   Contents

Automatic Code Generation

Is is now possible to generate C++ code from an Overflow .n file. You can do that by clicking the "Build" button on the toolbar. Doing so brings up the code generation dialog (fig. [*]).

Figure: Code generation dialog
Image codegen.png

The "Build function name" is the name given to the function that will return the network (Network *) corresponding to the XML file. You will only care if you want to build a library or if you want multiple networks. The "Output file name" option specifies the name of the C++ file that builds the network. Of course, "Directory" specifies where to put all that.

There are 3 code generation options:

Note: the VFLOW_SOURCE environment variable must be set to your Overflow source directory in order for the "static linkage" option to work.


next up previous contents
Next: Software Architecture Up: Overflow User's Manual Previous: Exceptions   Contents
Jean-Marc Valin 2002-06-17