[Enterprise Extensions only]

IRObject::def_kind

Overview The def_kind operation returns the kind of the Interface Repository definition.
Original interface IRObject Interface
Exceptions CORBA::SystemException


Intended Usage

The def_kind attribute identifies the kind of the Interface Repository definition. The def_kind operation returns the value in this attribute that identifies the definition kind of the object.

IDL Syntax

  readonly attribute DefinitionKind def_kind;

Input parameters

None.

Return values

DefinitionKind
The returned value indicates the definition kind of the Interface Repository object. Valid values that are returned by the def_kind read operation include: CORBA::dk_Attribute, CORBA::dk_Constant, CORBA::dk_Exception, CORBA::dk_Interface, CORBA::dk_Module, CORBA::dk_Operation, CORBA::dk_Alias, CORBA::dk_Struct, CORBA::dk_Union, CORBA::dk_Enum, CORBA::dk_Primitive, CORBA::dk_String, CORBA::dk_Sequence, CORBA::dk_Array, and CORBA::dk_Repository.

Example

  // C++
     // assume 'ir_object_ptr' has already been initialized . . .
     CORBA::IRObject * ir_object_ptr;
 
     // query the object to determine the definition kind . . .
     CORBA::DefinitionKind this_objects_kind;
     this_objects_kind = ir_object_ptr-> def_kind();