Setting up dependencies for generating C code (C code)
In addition to the standard Dependency properties in Modeler, you can apply the «C Dependency» stereotype to a Dependency, and then use its Tag Definitions to define C specific information.
1. If you have not done so already, add the C Profile package to your Model.
How?
3. Apply the
«C Dependency» stereotype to the Dependency. For information about applying Stereotypes to an item, click here
.
4. Open the Dependency's Property Pages, and then click the
C Dependency tab. For information about setting the tagged value of a Tag Definition, see
5. If the #include needs to be generated in both the header and implementation files, set the tagged value of the C In Implementation tag definition to TRUE.
6. If you want the #include to use angle brackets rather than inverted commas, set the tagged value of the C Is System tag definition to TRUE.
| If the «C Ignore» stereotype is applied to a Dependency, no #include statements are generated for that Dependency. |