Adding a Multiply-Inheriting IDL Interface—Example 4

The fourth example adds the FlexibleCollection IDL interface, which inherits from both the SearchableCollection and BorrowableCollection interfaces. The FlexibleCollection interface enables the server application to define a book collection that supports both book-searching operations and book-borrowing operations.

Listing 2.27 shows the BookRepository IDL module with this addition.

Listing 2.27. IDL BookRepository Module for Example 4
//IDL module BookRepository { //... interface Collection { //... }; interface SearchableCollection : Collection { //... }; interface BorrowableCollection : Collection { //... }; interface FlexibleCollection : BorrowableCollection, SearchableCollection { }; }; ...

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.