EnumDef::members

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


Intended Usage

The members attribute contains a distinct name for each possible value of the enumeration. The members read operation provides access to a copy of the contents of this enumeration member list, and the members write operation provides the ability to update the members attribute.

Syntax

  attribute EnumMemberSeq members;

Read operations

Input parameters
None
Return values
CORBA::EnumMemberSeq *

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

Write operations

Input parameters
CORBA::EnumMemberSeq & members

The members parameter provides the list of enumeration members with which to update the EnumDef.

Return values
None

Example

  // C++
     // assume that 'this_enum' has already been initialized
     CORBA::EnumDef * this_enum;
 
     // establish and initialize 'seq_update'
     CORBA::EnumMemberSeq seq_update;
     seq_update.length (3);
     seq_update[0] = CORBA::string_dup ("enumerator_0");
     seq_update[1] = CORBA::string_dup ("enumerator_1");
     seq_update[2] = CORBA::string_dup ("enumerator_2");
 
     // change the 'members' information in the enumeration
     this_enum-> members (seq_update);
     // read the 'members' information from the enumeration
     CORBA::EnumMemberSeq * returned_seq;
     returned_seq = this_enum-> members ();

Related reference
CORBA module



Searchable topic ID:   rcor_modeu1
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_modeu1.html

Library | Support | Terms of Use | Feedback