Dynamic Creation of Type Codes

The first step in the creation of a DynAny is to obtain a type code that describes the layout of the data held by the any. In general, if you are building a dynamic application such as a CORBA bridge, it is necessary to create type codes dynamically.

The interface for creating type codes dynamically is defined by a subset of operations in CORBA::ORB. A number of additional data types, borrowed from the interface repository IDL, are also used. Excerpts from the relevant IDL are shown in Listing 17.1.

Listing 17.1. IDL for Creating Type Codes
//IDL module CORBA { //---------------------------------------------------------- // Excerpt from the Interface Repository specification // The following types are needed for ...

Get Pure CORBA now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.