Transforming UML models into C++ code

You can use the UML-to-C++ transformation to generate C++ code from a UML model by creating a UML-to-C++ transformation configuration and applying it to a model.

About this task

If you use both UML models and C++ to plan and develop a system, two round-trip-engineering (RTE) scenarios are common:
  • Transform a UML model into C++ code, change the code, and then transform the changed code into UML (model-code-model)

    By default, this transformation supports this scenario.

  • Transform existing C++ code into a UML model, change the model, and then transform the changed model into code (code-model-code)

    To use this transformation in a code-model-code RTE scenario, which begins by running the C++-to-UML transformation, you must first complete several steps in the existing code to ensure that the UML-to-C++ transformation propagates changes to the model into the existing code, instead of generating new code. For more information about the steps to complete, in the Related information section below, see the link to the Technote.


Feedback