![]() |
The atomic IDL data types (long, short, unsigned long, unsigned short, float, double, char, boolean, and octet) are mapped into types defined in corba.h, nested within the CORBA scope. See IDL name scoping for more information. The first letter of the mapped type is capitalized. For example, to introduce and initialize a local variable named Myvar whose type corresponds to the IDL type named long, a C++ programmer could employ the following expression:
CORBA::Long Myvar = 1;The mapping for the IDL boolean type (CORBA::Boolean) defines only the values 0 and 1. The unsigned long and unsigned short IDL types are mapped to CORBA::ULong and CORBA::UShort, respectively.