IBM® Rational® Rhapsody® uses
units to permits projects to contain components from different development
languages such as C and C++. Each unit is associated with a specific
development language. Several Rational Rhapsody capabilities
support multiple-language projects:
- Rational Rhapsody API:
The interface IRPUnit allows recursive changing of
unit language.
- ReporterPLUS can query the language of an element.
- The Rational Rhapsody internal
reporter shows the language of each saved unit.
- XMI: Language of each unit is exported and imported.
- Graphic Editor: Changes to language of a unit do
not affect the depiction of the unit in the graphic editor. For example,
if you change the language of a template class to C, it will still
look like a template class in the graphic editor.
- IBM Rational Rhapsody DiffMerge checks
for language differences.
- PredefinedTypes package: These packages are language-dependent.
When you create a unit whose language differs from that of the Rational Rhapsody version
being used, the relevant package of predefined types for that language
will be loaded.