Real-Time C++ General group properties for UML properties

The following C++ properties in the General group are associated with UML properties. The properties for UML elements are listed in the order in which they appear in the Properties view, on the RT Properties page.
The information in parentheses refers to the element type and the name of the tab that is associated with the properties in Rational Rose® RealTime.
Attribute Kind (attribute, C++)
Specifies whether the attribute is generated as a member of the class, as a global variable defined within the file that is generated for the class, or as a #define directive defined in the file that is generated for the class. Options are member, global, and constant.

If an attribute is set to global or constant and is to be used in detail level code, attribute array sizes, or other common C++ usages, ensure that a dependency is added between the class that contains the definition and the elements which use the definitions.

Field Size
Specifies the field size.
Field Volatile
Select this check box to generate that the volatile type qualifier. This property was called "volatile" in Rational Rose RealTime.
Field Points to Const Type
Select this check box to declare a pointer that points to a const variable. This property was called "valuePointedToByPointerConstant" in Rational Rose RealTime.
Field Points to Volatile Type
Select this check box to declare a pointer that points to a volatile variable. This property was called "valuePointedToByPointerVolatile" in Rational Rose RealTime.
Native Type
Specifies the type of the property, such as bool or int.
Get Method Kind
Determines if the transformation generates a get method by setting the method kind, such as common or static. This property replaces the generateGetMethod property from Rational Rose RealTime; to indicate that a get method definition should not be generated, set Get Method Kind to none.
Get Method Visibility
Specifies the visibility of the generated artifact. The default value is set to public. This is a new property.
Get Method Name
Specifies the name of the get method. The default value is set to get_$name. $name is a variable that resolves to the name of the attribute.
Get Method Constant
Specifies whether the generated get method is declared as constant. The default value is set to False.
Get Method Returns
Specifies the generated return type for the get method. This is a new property.
Get Method Volatile
Specifies whether the generated get method is declared as volatile. The default value is set to False. This is a new property.
Get Method Inline
Specifies whether the generated get method is declared as inline. The default value is set to False. This property was called "inlineGetMethod" in Rational Rose RealTime.
Initializer Kind (attribute, C++)
Specifies how the code generator initializes the attribute. Options are constructor or assignment. Use this property to configure how the attribute that is generated for this association end is initialized. When the owner class generates and uses a constructor function, the constructor attempts to initialize its attributes however it can.

If Initializer Kind is set to assignment, the attribute is initialized in the owner's constructor by assignment with the attribute's initial value as defined in the Attribute::General::Default Value property.

If Initializer Kind is set to constructor, the class constructor initializes the attribute in the initializer list and calls the attribute's constructor with the parameters defined in the Attribute::General::Default Value property.

Set Method Kind
Determines if the transformation generates a set method and, if so, of what kind. Options include none, common, and static. This property replaces the generateSetMethod property from Rational Rose RealTime; to indicate that a set method definition should not be generated, set Set Method Kind to none.
Set Method Visibility
Specifies the visibility of the generated artifact. The default value is set to public. This is a new property.
Set Method Inline
Specifies whether the generated set method is declared as inline. The default value is set to False. This property was called "inlineSetMethod" in Rational Rose RealTime.
Set Method Name
Specifies the name of the set method. The default value is set to set_$name. $name is a variable that resolves to the name of the attribute.
Set Method Constant
Specifies whether the generated set method is declared as constant. The default value is set to False.
Set Method Returns
Specifies the generated return type for the set method. The default value is set to void. This is a new property; it replaces the "setMethodReturnTypeConstant", "setMethodReturnsValue" and "setMethodByReference" properties from Rational Rose RealTime.
Set Method Volatile
Specifies whether the generated set method will be declared as volatile. The default value is set to False. This is a new property.
Set Method Parameter
The default value is set to const <T> &. This is a new property.
Header Preface
Specifies the text that appears immediately before the declaration of the property in the header file. This property also applies to enumeration literals.
Header Ending
Specifies the text that appears immediately after the declaration of the property in the header file. This property also applies to enumeration literals.
Implementation Preface
Specifies the text that appears immediately before the property implementation. This property also applies to enumeration literals.
Implementation Ending
Specifies the text that appears immediately after the class implementation. This property also applies to enumeration literals.

Feedback