OSTC Fundamental Data Types

The types of values that clients can specify as arguments to operations (see ostc_Operation::setArgument()) are limited to the following:

Attribute values for ostc_Objects are also limited to these types.

The following typedefs are used to designate the fundamental types:

oscs_Int64
oscs_Int32
oscs_String
oscs_Bool
oscs_Float
oscs_Double

Operation formal parameters are specified (see ostc_ServerOperation::addArgument() and ostc_ServerOperation::addReturnSetAttribute()) with enumerators that correspond to the fundamental types. The following enumeration is defined in the scope of the class ostc:

enum types { 
      ostc_int32 = 1, 
      ostc_int64, 
      ostc_float, 
      ostc_double, 
      ostc_string, 
      ostc_oid, 
      ostc_binary
};

The following table shows the correspondences:

ostc_int32 32-bit integer
ostc_int64 64-bit integer
ostc_string char*
ostc_float float
ostc_double double
ostc_oid ostc_OID*
ostc_binary void*



[previous] [next]