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.
Applying the UML-to-C++ transformation profile
When you create a UML model, you can apply a profile to the model to control how the transformation generates code or artifacts. Adding a profile enables you to model additional elements that you cannot model with UML elements. To see a list of potential problems that can occur in the code that the transformation generates, apply the profile to the source model and run the model validation feature.
Creating or editing transformation configurations
To generate output such as code from a source model, or to generate a model from code, you must run a transformation. To run a transformation, you must create a transformation configuration. A transformation configuration specifies information that a transformation requires to generate the expected output.