![]() |
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 |
Objects behave somewhat differently, as shown in the following examples (Java type-> IDL type-> C++ type):
byte[]-> ::org::omg::boxedRMI::seq1_octet-> ::org::omg::boxedRMI::seq1_octet*
java.lang.String-> ::CORBA::WstringValue-> ::CORBA::WstringValue*
Java.util.Enumeration-> abstract valuetype Enumeration-> ::java::util:: Enumeration
The IDL definition for the Enumeration valuetype (as generated by the rmic -idl utility) is:
module java { module util { abstract valuetype Enumeration; }; };
Related tasks... | |
Creating your own C++ valuetypes | |
Related concepts... | |
Parent: CORBA value type library for C++ | |
C++ valuetype library, runtime type information | |
C++ valuetype library, application programming interface | |
CORBA value type considerations | |
Related reference... | |
C++ valuetype library, methods implemented | |