Repository::create_sequence

Overview The create_sequence operation is used to create a new sequence definition (SequenceDef).
Original interface Repository Interface
Exceptions CORBA::SystemException


Intended Usage

The create_sequence operation returns a new SequenceDef with the specified bound and element_type.

Syntax

  SequenceDef create_sequence(
     in unsigned long bound,
     in IDLType element_type
     );

Input parameters

bound
The bound value represents the bound of the sequence definition. The bound value can be zero.
element_type
The element_type is the IDLType of the elements in the sequence.

Return values

SequenceDef_ptr
The return value is a pointer to the SequenceDef of the specified bound and element_type.

Example

  // C++
     // assume that 'repository_ptr' and 'struct_1' have already been 
     // initialized
     CORBA::Repository * repository_ptr;
     CORBA::StructDef * struct_1;
 
     // create a sequence of 45 'struct_1' elements . . .
     CORBA::ULong bound_of_sequence = 45;
     CORBA::SequenceDef * sequence_def_ptr;
     sequence_def_ptr = repository_ptr-> create_sequence
                        (bound_of_sequence, struct_1);

Related reference
CORBA module



Searchable topic ID:   rcor_modre2
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_modre2.html

Library | Support | Terms of Use | Feedback