![]() |
Overview Creates a tk_array TypeCode. Original class CORBA::ORB Exceptions CORBA::SystemException
Intended Usage
This method is intended to be used to create a TypeCode of kind tk_array, representing an IDL array.
IDL Syntax
CORBA::TypeCode_ptr create_array_tc ( CORBA::ULong length, CORBA::TypeCode_ptr element_type_code);
Input parameters
- length
- The length of the IDL array.
- element_type_code
- A non-NULL TypeCode representing the type of the elements of the array. 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_array TypeCode corresponding to this IDL definition: "typedef string my_string[1997];" */ /* assume op initialized */ extern CORBA::ORB_ptr op; CORBA::TypeCode_ptr tc = op->create_array_tc(1997, CORBA::_tc_string);