Applying the C++ transformation

You can use the C++ transformation to convert your UML model to C++ code.

Before you apply the C++ transformation, you should read the information available at Modeling > Transform > Configure Transformations. In the Transformations/Configurations list, click UML to C++, on the Transformation Description page, click View Transformation Documentation.
To apply the C++ transformation:
  1. In the Model Explorer view, select the model elements or model that you want to convert to C++ code.
    Note: A model element that is contained within another model element, such as a component or collaboration, will not be transformed unless it is specifically selected.
  2. Right-click the selected model or model elements; then complete one of the following steps:
    • To run a new transformation configuration, click Transform > Run Transform > UML to C++.
    • To run an existing transformation configuration, click the name of the transformation configuration.
  3. To create a new target C++ project, complete the following steps:
    1. In the Run Transformation window, click the Target tab.
    2. On the Target page, click New Project or New Managed Project.
    3. In the New Project wizard, in the Project name field, type a name.
    4. Click Finish.
    5. Select a target.
  4. Click Run.
The transformation generates C++ code files, which are displayed in the Model Explorer view.

Parent topic: Generating C++ code from a model

Related concepts
C++ transformation
C++ transformation templates

Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.