ibm Rational Rhapsody 7.5 — Language-independent types

Language-independent types Language-independent types Rational Rhapsody enables you to build static models using language-independent, predefined types, with no dependency on the implementation language. The types are defined in the following files (under path>\Share\ \oxf ): Љ Ada, the RiA_Types package Љ C, the RiCTypes.h Љ C++, the rawtypes.h Љ Java, the types are converted during code generation, based on properties defined in the PredefinedTypes package loaded by Rational Rhapsody (under installation path>\Share\Properties\PredefinedTypes.sbs ). The following table shows the mapping between the predefined types and the language implementation types.

Rational Rhapsody 113 Model Type Ada C C++ Java RhpInteger integer int int int RhpUnlimitedNatural long integer _ long long long RhpPositive unsigned unsigned int unsigned int int RhpPositive unsigned unsigned int unsigned int int RhpReal long float _ double double double RhpCharacter character char char char RhpString string char* OMString String RhpBoolean boolean RiCBoolea n bool boolean RhpVoid Used in procedure declaration only void void void RhpAddress address void* void* Object