You can use the C++ transformation profile to control how the transformation generates C++ code from your UML model.
The C++ profile contains several stereotypes that you can use to mark up your model and to control how the transformation transforms each model element into C++ code. For example, when you apply the <<cpp_struct>> stereotype to a class in your model, the transformation generates a struct object.
You should not apply more than one stereotype to a model element. The transformation creates only one C++ object for each model element, regardless of how many stereotypes you apply.
Related tasks
Generating C++ code from a model
Applying the C++ transformation profile
Related reference
Installed transformations