PrimitiveDef::kind

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).

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
IDL type declarations



Searchable topic ID:   rcor_modpr1
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/ref/rcor_modpr1.html

Library | Support | Terms of Use | Feedback