13.1.1.1 Basic Data Types

The basic data types in OMG IDL statements are mapped to C++ typedefs in the CORBA module, as shown in the following table.

Table 13-1 Basic OMG IDL and C++ Data Types

OMG IDL C++ C++ Out Type
short CORBA::Short CORBA::Short_out
long CORBA::Long CORBA::Long_out
unsigned short CORBA::UShort CORBA::UShort_out
unsigned long CORBA::ULong CORBA::ULong_out
float CORBA::Float CORBA::Float_out
double CORBA::Double CORBA::Double_out
char CORBA::Char CORBA::Char_out
boolean CORBA::Boolean CORBA::Boolean_out
octet CORBA::Octet CORBA::Octet_out
wchar CORBA::WChar CORBA::WChart_out

Note:

On a 64-bit machine where a long integer is 64 bits, the definition of CORBA::Long would still refer to a 32-bit integer.