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

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