From RTSC-Pedia
revision tip
LANDSCAPE orientation![]() | [printable version] [offline version] | offline version generated on 11-Jun-2009 18:06 UTC | ![]() |
XDCspec - @Template
This module contributes configuration C code
| @Target("template") |
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 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:
- this
- the module object associated with this the template
- $args
- an array of length 1, where $args[0] is an absolute path to the template file itself
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.
![]() | [printable version] [offline version] | offline version generated on 11-Jun-2009 18:06 UTC | ![]() |
Copyright © 2008 The Eclipse Foundation. All Rights Reserved