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
Return values
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);