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.
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.