Specifying how C++-to-UML transformations generate UML operations and associations

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:
  1. In the Project Explorer view, right-click a transformation configuration file; then click Open.
  2. Click the C++ to UML Options tab.
  3. To create UML operations, select the check boxes beside the C++ elements to transform.
  4. 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.
  5. Click File > Save.
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.
Related concepts
C++-to-UML transformations
Related reference
Interpretation of source code by C++-to-UML transformations

Feedback