Adding an IDL Interface for Searching—Example 2

The second example adds the SearchableCollection IDL interface. This interface supports a single operation, find_by_title(), to let you search for a particular book. The structure and sequence IDL types are introduced as well.

Listing 2.9 shows the second draft of the BookRepository IDL module, with these additions.

Listing 2.9. IDL BookRepository Module for Example 2
//IDL module BookRepository { typedef long ISBN; struct PersonName { string first_name; string second_name; }; struct Date { short day; short month; short year; }; struct BookDetails { PersonName author; string title; ISBN book_id; Date publication_date; }; typedef sequence<BookDetails> BookDetailsSeq; enum FuzzyBoolean {NO, YES, UNKNOWN}; ...

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.