C++-to-UML transformations

The C++-to-UML transformation transforms C++ code into UML model elements.

Valid transformation sources

The source that you specify in the transformation configuration must be created using the C/C++ Development Tools (CDT). You can specify a C++ project, a C++ source folder in a project, or C++ source files as the transformation source.

If you select C++ elements in the project instead of using the Transformation Configuration editor, the source elements that you select override the source project or elements that are specified in the transformation configuration. The transformation configuration is not affected and the source that you specify on the Source and Target page of the transformation configuration editor or the New Transformation Configuration wizard does not change.

Note: If you enable the reverse transformation, you must specify a C++ project as the transformation source, and the project must be created using CDT. The reverse transformation transforms UML model elements into C++ code elements and stores these code elements in the C++ project or folder that you specify.

Valid transformation targets

A valid transformation target is a UML model.

Comparing and merging transformation output with target UML models

The C++-to-UML transformation uses the comparing and merging functionality to determine the differences between the target model and the temporary model that the transformation generates. When you run the C++-to-UML transformation, the merge editor displays the differences between the two models. In the merge editor dialog box, you can select the changes that the transformation merges into the target model.

Integration with team support

The transformation provides integration functionality with CVS, Rational® ClearCase®, and Rational ClearCase LT version control systems, which enables you to automatically check out files or add new files. You must enable team capabilities to work with configuration management systems.

Related tasks
Transforming C++ code into UML models
Creating or editing C++-to-UML transformation configurations
Enabling team capabilities
Specifying sources and targets for C++-to-UML transformations
Specifying how C++-to-UML transformations generate UML operations and associations
Related reference
Interpretation of source code by C++-to-UML transformations

Feedback