An Example of Reading from the Interface Repository

This example is based on the RecycleBroker IDL as described in Chapter 3. It is assumed that the interface repository is already populated with the RecycleBroker IDL before this example is run.

The code in Listing 20.4 and Listing 20.5 shows the CORBA::Container::lookup() operation being used in two ways:

1.
In the first part of the example, lookup() is used to find the "RecycleBroker::WasteItemAdmin" interface. This identifier is specified relative to the Repository scope because it is invoked on a CORBA::Repository object. The code prints out all of the operation names belonging to the WasteItemAdmin interface.
2.
In the second part of the example, lookup() is used to find the "::RecycleBroker" ...

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.