Editing the C++ properties of UML models

 

Introduction

The C++ properties of UML model elements can be edited through the "C++" tab of the auxiliary window and through C++ edition dialog boxes.  The C++ edition dialog boxes for a selected model element can be accessed by pressing the  "Edit properties" button in the C++ toolbar or in the "C++" tab of the auxiliary window (Figure 25).

 

Figure 25. The "Edit properties" button in the C++ toolbar and in the "C++" tab of the auxiliary window

 

 

Structure of C++ edition dialog boxes

C++ edition dialog boxes vary according to the model element selected.  The C++ edition dialog box for a given element presents its C++ properties, grouped into different categories:

·         The "Declaration" tab presents properties that affect the element's C++ declaration.

·         The "Code" tab groups together C++ notes, which provide the element's code, such as operation code or return value expression.

·         The "Documentation" tab groups doxygen notes, which provide the element's documentation.

·         The "Externals" tab groups properties that describe non-modeled entities, such as external library headers used by the element.

 

Figure 26 shows the C++ edition dialog box for a class.

 

Figure 26. The C++ edition dialog box for the "Task" class