![]() |
Overview Creates a tk_sequence TypeCode. Original class CORBA::ORB Exceptions CORBA::SystemException
Intended Usage
This method is intended to be used to create a TypeCode of kind tk_sequence, representing an IDL sequence.
See also the CORBA::ORB::create_recursive_sequence_tc method, for creating TypeCodes describing recursive IDL sequences.
IDL Syntax
CORBA::TypeCode_ptr create_sequence_tc ( CORBA::ULong bound, CORBA::TypeCode_ptr element_type);
Input parameters
- bound
- The bound of the IDL sequence. Zero designates an unbounded sequence.
- element_type
- A non-NULL CORBA::TypeCode describing the type of the sequence elements. The caller retains ownership of this TypeCode.
Return values
- CORBA::TypeCode_ptr
- The newly-created TypeCode. The caller assumes ownership of this TypeCode, and should subsequently release it using CORBA::release(TypeCode_ptr).
Example
/* Code to create a tk_sequence TypeCode corresponding to this IDL definition: sequence my_seq; */ /* assume op initialized */ extern CORBA::ORB_ptr op; CORBA::TypeCode_ptr tc = op->create_sequence_tc (12, CORBA::_tc_short);