You can specify which C++ elements the transformation transforms
into UML operations, and whether the transformation generates UML associations
or UML properties for member variables in a class. These options provide you
with greater control over the UML elements that the transformation generates
in the target UML model. By default, for each class that you specify in the
transformation source, the transformation generates UML operations for C++
getter and setter methods, default constructors and destructors, copy constructors,
and assignment operators, and creates UML associations for member variables.
To specify how the transformation creates UML operations and associations:
- In the Project Explorer view, right-click
a transformation configuration file; then click Open.
- Click the C++ to UML Options tab.
- To create UML operations, select the check boxes beside the C++
elements to transform.
- To create UML associations for member variables, select the Generate
UML associations for C++ member variables by peeking into the model.
The transformation examines the target model and creates association relationships
for member variables that are part of an association relationship. If a member
variable is not part of a UML association, the transformation creates a UML
property.
- Click .
Note: If you create
a new transformation configuration, you can specify this information on the
C++
to UML Options page of the New Transformation Configuration wizard.