Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > C++ code > Generating C++ code > Generating C++ code > Modeling C++ code in Modeler > Setting up enumeration literals for generating C++ code (C++ code)
  
Setting up enumeration literals for generating C++ code (C++ code)
In addition to the standard Enumeration Literal properties in Modeler, you can apply the «C++ Enum Literal» stereotype to an Enumeration Literal, and then use its Tag Definitions to define C++ specific information.
1. If you have not done so already, add the C++ Profile package to your Model. How?
2. Set the standard properties of the Enumeration Literals as required. Tell me more...
3. Apply the «C++ Enum Literal» stereotype to the Enumeration Literal.
For information about applying Stereotypes to an item, see Applying a Stereotype to a model item.
4. Open the Enumeration Literal's Property Pages, and then click the C++ Enum Literal tab.
For information about setting the tagged value of a Tag Definition, see Setting a tagged value for an applied Tag Definition.
5. If you want to specify expression text for the Enumeration Literal, specify the text as the tagged value of the C++ Expression tag definition.
6. If you want the generated enumeration literal to be prefixed by the enumeration literal prefix defined in the mangle.ini file, set the tagged value of the C++ Prefix Name tag definition to TRUE.
By default, the enumeration literal prefix in the mangle.ini file is set to '%parent%_', so that the enumeration literal is prefixed with the name of the owning Enumeration followed by an underscore.