Specifying sources and targets for UML-to-C++ transformations

You can select the source model or model elements on which to run a transformation, and specify a location where the transformation generates target elements or files.
The UML-to-C++ transformation can convert the following UML source objects into C++ code:
  • Models
  • Packages
  • Classes
  • Enumerations
  • Interfaces
  • Components
Note: If you enable the reverse transformation, you must specify a model as the transformation source. The C++-to-UML, or reverse, transformation transforms C++ source objects into UML objects and stores these objects in the UML model that you specify.

A valid transformation target is a C++ project that contains at least one source folder. If you create a new target container, you can create a standard make C++ project, which uses either a makefile that you create or an existing makefile, or you can create a managed make project, which generates the makefile for you automatically.

To specify the source and target of a transformation:

  1. In the navigation view, right-click a transformation configuration file; then click Open.
  2. Click the Source and Target tab.
  3. In the Selected source pane, select a valid source model or model elements for the transformation.
  4. In the Selected target pane, select a valid target location for the artifacts that the transformation generates.
    Note: To create a new target location, click Create New Target Container and complete the pages in the wizard.
  5. Click File > Save.
The options are applied the next time that you run the transformation.
Note: If you create a new transformation configuration, you can specify this information on the Source and Target page of the New Transformation Configuration wizard.
Related concepts
UML-to-C++ transformations
Related reference
Interpretation of UML model elements by UML-to-C++ transformations

Feedback