IBM® Rational® Rhapsody® has
two primary methods to customize code generation for a C model:
- Modifying the values of various properties in IBM Rational Rhapsody. This
method is available for IBM Rational Rhapsody Developer for C, IBM Rational Rhapsody Developer for C++, IBM Rational Rhapsody Developer for Java,
and IBM Rational Rhapsody Developer for Ada.
These properties are found under the CG and <lang>_CG subjects
(for example, CG::Package::UseAsExternal and JAVA_CG::Dependency::SpecificationEpilog).
- Using rules. You might want to use this
method if you have significant changes in the generated code where
it is not enough to use properties and you want to have a starting
point that is the out‑of‑the‑box code generation. This method is available
only for Rational Rhapsody Developer for C.
Note: You can also write your own code generator with the
use of the RulesComposer tool. You must have a valid license to be
able to use this tool.
The using‑rules method includes the conceptual basis
for this customization mechanism, as well as specific instructions
for customizing code generation.
Both methods might be used to control the content
and appearance of the generated code. These two mechanisms co‑exist
and can be referred to as basic (using properties) and advanced (using
rules) customization.