[Enterprise Extensions only]

ORB::create_string_tc

Overview Creates a tk_string TypeCode.
Original class CORBA::ORB
Exceptions CORBA::SystemException


Intended Usage

This method is intended to be used to create a TypeCode of kind tk_string, representing an IDL string.

IDL Syntax

  CORBA::TypeCode_ptr create_string_tc (CORBA::ULong bound);

Input parameters

bound
The bound of the IDL string. Zero designates an unbounded string.

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_string TypeCode corresponding to this
     IDL definition:
         string <123> my_string; (this is a bounded string)
   */
  /* assume op initialized */
  extern CORBA::ORB_ptr op;
  CORBA::TypeCode_ptr tc = op->create_string_tc (123);