revision tip—— LANDSCAPE orientation
XDCspec - @Template
This module contributes configuration C code
Modules that want to generate C code that is included in application can specify a template that is expanded in the context of the configuration model and its results are directly inserted into the configuration's generated .c file.
The template file is located using the same search algorithm as xdc.findFile(). So, templates can be located in other packages and will be found along the package path.
The template is expanded in the context of the configuration model as part of the generation phase and, as a result, has access to a fully populated and validated xdc.cfg.Program object. In addition, the following global variables are set:
- the module object associated with this the template
- an array of length 1, where $args is an absolute path to the template file itself
- a java.io.PrintStream where all output is written; i.e., the output stream of the generated configuration .c output file
Copyright © 2008 The Eclipse Foundation. All Rights Reserved