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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.