IBM Support

Alternative to have pointers for non-composition Association in Rational Rhapsody

Technote (FAQ)


What is the configuration option in IBM Rational Rhapsody to have an alternate to pointers for non-composition Association?


Rational Rhapsody for C++ uses regular pointers for non-composition Association Ends. However you would like to use std::auto_ptr<> or boost::shared_ptr<>.


You can achieve the aforesaid by modifying the below properties in Rational Rhapsody:

  1. CG::Relation::Implementation

  2. OMContainers::Scalar::CType


Class A is related to Class B (A -> B) through a Non-Composition (Shared or None) having One-To-One relation. By altering the value of property OMContainers::Scalar::CType to std::int, the object itsB will by generated as std::int.

Document information

More support for: Rational Rhapsody
General Information

Software version: 8.0, 8.0.1, 8.0.2

Operating system(s): Windows

Reference #: 1638652

Modified date: 27 May 2013