[Enterprise Extensions only]

C++ value type library, data type mappings

The WebSphere CORBA valuetype library for C++ provides mappings for the following primitive data types:

IDL Type C++ Type
short CORBA::Short
long CORBA::Long
long long CORBA::LongLong
unsigned short CORBA::UShort
unsigned long CORBA::ULong
unsigned long CORBA::ULongLong
float CORBA::Float
double CORBA::Double
long double CORBA::LongDouble
char CORBA::Char
wchar CORBA::Wchar
boolean CORBA::Boolean
octet CORBA::Octet


Note: The rmic -idl utility maps a Java byte to an IDL octet, and a Java char to an IDL wchar.

Objects behave somewhat differently, as shown in the following examples (Java type-> IDL type-> C++ type):

The IDL definition for the Enumeration valuetype (as generated by the rmic -idl utility) is:

module java {
  module util {
    abstract valuetype Enumeration;
  };
};