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 enumerations for generating C++ code (C++ code)
  
Setting up enumerations for generating C++ code (C++ code)
In addition to the standard Type Definition properties in Modeler, you can apply the «C++ Enumeration» stereotype to a Type Definition, 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 as required. Tell me more...
3. Apply the «C++ Enumeration» stereotype to the Enumeration.
For information about applying Stereotypes to an item, see Applying a Stereotype to a model item.
4. Open the Enumeration's Property Pages, and then click the C++ Enumeration tab.
For information about setting the tagged value of a Tag Definition, see Setting a tagged value for an applied Tag Definition.
5. If the Enumeration is scoped to a Class, Data Type, Interface or Signal and you want to specify that the Enumeration is a non-member, that is, the Enumeration is not a member of the owning Class, Data Type or Interface but you want it to appear in the owning Class', Data Type's or Signal's implementation file (or outside of the class in an Interface's header file), set the tagged value of the C++ Non Member tag definition to TRUE.
6. If you want the Enumeration to be generated inline, set the tagged value of the C++ Anonymous Item tag definition to TRUE.