[Enterprise Extensions only]

ORB::create_interface_tc

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


Intended Usage

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

IDL Syntax

  CORBA::TypeCode_ptr create_interface_tc (
      CORBA::RepositoryId rep_id,
      CORBA::Identifier name);

Input parameters

rep_id
The non-NULL Interface Repository identifier of the IDL interface. The caller retains ownership of this string.
name
The non-NULL simple name of the IDL interface. The caller retains ownership of this 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_objref TypeCode corresponding to this
     IDL definition: interface my_interface;
   */
  /* assume op initialized */
  extern CORBA::ORB_ptr op;
  CORBA::RepositoryId rep_id = CORBA::string_dup("RepositoryId_999");
  CORBA::Identifier name = CORBA::string_dup("my_interface");
  CORBA::TypeCode_ptr tc = op->create_interface_tc (rep_id, name);