Creating C/C++ enumerations in domain modeling class diagrams

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

  1. In the Palette, click C++ Enum and click an empty space in a class diagram.
  2. In the New C/C++ Enum wizard, to add the enumeration to an existing namespace, select the Namespace check box and specify a namespace.
  3. In the Name field, type the name of the enumeration.
  4. In the Source folder field, specify the source folder for the new file.
  5. To specify a file name, clear the Use default file check box and specify a file in the Filename field.
  6. Click Finish.

What to do next

Tip: You can also create C/C++ enumerations by using the action bar or the Add C/C++ > Enum pop-up menu on the diagram.

Feedback