ORB::create_interface_tc

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


Intended Usage

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

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

Related reference
CORBA module



Searchable topic ID:   rcor_modo13
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/ref/rcor_modo13.html

Library | Support | Terms of Use | Feedback