![]() |
Overview The kind read operation retrieves the kind of a primitive definition (CORBA::PrimitiveDef). Original interface PrimitiveDef Interface Exceptions CORBA::SystemException
Intended Usage
The kind attribute indicates which primitive type is represented by a PrimitiveDef object. The valid values for the kind attribute that may be retrieved using the kind operation include CORBA::pk_short, CORBA::pk_long, CORBA::pk_ushort, CORBA::pk_ulong, CORBA::pk_float, CORBA::pk_double, CORBA::pk_boolean, CORBA::pk_char, CORBA::pk_wchar, and CORBA::pk_octet, that represent the basic kinds implied by the names.
Other kind values include: CORBA::pk_any (CORBA::Any data type), CORBA::pk_TypeCode (CORBA::TypeCode data type), CORBA::pk_Principal (CORBA::Principal data type) , CORBA::pk_string (an unbounded string), CORBA::pk_wstring, and CORBA::pk_objref (CORBA::Object data type).
IDL Syntax
readonly attribute PrimitiveKind kind;
Input parameters
None.
Return values
- PrimitiveKind
- The returned value is the value of the kind attribute (CORBA::PrimitiveKind) of the CORBA::PrimitiveDef.
Example
// C++ // assume that 'this_primitive' has already been initialized CORBA::PrimitiveDef * this_primitive; // retrieve the 'kind' of the PrimitiveDef CORBA::PrimitiveKind returned_kind; returned_kind = this_primitive-> kind ();
Related reference... | |
CORBA module in Object Request Broker | |
Parent: CORBA module: PrimitiveDef Interface | |
IDL type declarations | |