ExceptionDef::members

Overview The members read and write operations provide for the access and update of the list of elements of an OMG IDL exception definition (CORBA::ExceptionDef) in the Interface Repository.
Original interface CORBA module: ExceptionDef Interface
Exceptions CORBA::SystemException


Intended Usage

The members attribute contains a description of each exception member. The members read and write operations allow the access and update of the members attribute.

Syntax

  attribute StructMemberSeq members;

Read operations

Input parameters
None.
Return values
CORBA::StructMemberSeq *

The returned pointer references a sequence that is representative of the exception members. The memory is owned by the caller and can be released by invoking delete.

Write operations

Input parameters
CORBA::StructMemberSeq & members

The members parameter provides the list of exception members with which to update the ExceptionDef. Setting the members attribute also updates the type attribute.

Return values
None.

Example

  // C++
     // assume 'this_exception_def', 'struct_1', and 'struct_2'
     // have already been initialized
     CORBA::ExceptionDef * this_exception_def;
     CORBA::StructDef * struct_1;
     CORBA::StructDef * struct_2;
 
     // establish and initialize the StructMemberSeq . . .
     CORBA::StructMemberSeq seq_update;
     seq_update.length (2);
     seq_update[0].name = CORBA::string_dup ("struct_1");
     seq_update[0].type_def = CORBA::IDLType::_duplicate (struct_1);
     seq_update[1].name = CORBA::string_dup ("struct_2");
     seq_update[1].type_def = CORBA::IDLType::_duplicate (struct_2);
 
     // set the members attribute of the ExceptionDef
     this_exception_def-> members (seq_update);
 
     // read the members attribute information from the ExceptionDef
     CORBA::StructMemberSeq * returned_members;
     returned_members = this_exception_def-> members (); 

Related reference
CORBA module



Searchable topic ID:   rcor_moded2
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_moded2.html

Library | Support | Terms of Use | Feedback