![]() |
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.
IDL 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);