You can use domain modeling class diagrams to create C/C++
enumerations in the diagram editor.
Before you begin
You must be in the C/C++ perspective and have a domain modeling
class diagram open in the diagram editor.
About this task
To create a C/C++ enumeration, complete the following
steps:
Procedure
- In the Palette, click C++ Enum and
click an empty space in a class diagram.
- In the New C/C++ Enum wizard, to add
the enumeration to an existing namespace, select the Namespace check
box and specify a namespace.
- In the Name field, type the name
of the enumeration.
- In the Source folder field, specify
the source folder for the new file.
- To specify a file name, clear the Use default
file check box and specify a file in the Filename field.
- Click Finish.
What to do next
Tip: You can also create C/C++ enumerations by
using the action bar or the pop-up menu on the diagram.