![]() |
Overview The result_def read and write operations allow the access and update of the result type definition of an operation definition (CORBA::OperationDef) in the Interface Repository. Original interface OperationDef Interface Exceptions CORBA::SystemException
Intended Usage
The type of the result of an operation definition is identified by the result_def attribute (a reference to a CORBA::IDLType *). Read and write result_def operations are supported, the parameter and return value definitions of which are defined below.
IDL Syntax
attribute IDL/Type result_def;
Read operations
- Input parameters
- None.
- Return values
- CORBA::IDLType *
The returned object is a pointer to a copy of the CORBA::IDLType referenced by the result_def attribute of the CORBA::OperationDef object. The returned object is owned by the caller and can be released by invoking CORBA::release.
Write operations
- Input parameters
- CORBA::IDLType * result_def
The result_def parameter represents the new result definition for the CORBA::OperationDef. Setting the result_def attribute also updates the result attribute.
- Return values
- None.
Example
// C++ // assume that 'this_operation' and 'this_struct' have already been // initialized CORBA::OperationDef * this_operation; CORBA::StructDef * this_struct; // change the operation result type definition to 'this_struct' this_operation-> result_def (this_struct); // read the operation's result type definition from 'this_operation' CORBA::IDLType * returned_result_def; returned_result_def = this_operation-> result_def ();