The following C++ properties in the Target RTS are associated
with properties, including properties that are owned by an association
class, and enumeration literals. The properties control aspects of
code generation for UML-to-Real-Time-C++ transformations and 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.
- Generate Descriptor (attributes and roles, C++ TargetRTS)
- Specifies whether to generate a descriptor for the attribute.
If a descriptor is not generated the C++ Services Library cannot encode
or decode the attribute.
- Generate Type Modifier
- Specifies whether to generate a type modifier for the attribute.
The default value is set to True.
- Num Elements Function Body (attributes and roles, C++ TargetRTS)
- If the attribute is a pointer to an object, the pointer might
point to one or many objects. The Num Elements Function Body property
provides the body of the function which calculates the number of objects
the pointer points to. If the body is empty, the pointer is assumed
to point to only one object.
This function is required to make
attributes that are pointers to arrays observable in the execution
monitors.
The function body provides access to the attributes that
contain the object. In the example below the attribute is part of
a PointerInts object. You typically use information
contained in the containing object to determine how many things the
pointer points to. static int rtg_nefb_PointerInts_ints( const RTTypeModifier * modifier,
const PointerInts * source )
{
return( source->n_ints );
}
- Type Descriptor (attributes and roles, C++ TargetRTS)
- Specifies an explicit descriptor for the attribute. Typically,
the code generator determines which descriptor to use for the attribute,
but in some cases you might want to override this.