Yurttas/PL/OOL/Java/F/08/02/01/00/Inventory00.idl

From ZCubes Wiki
Jump to navigation Jump to search
 1module Inventory00 {
 2
 3  struct CD {
 4    string title;
 5    string author;
 6  };
 7
 8  struct CatalogItem {
 9    CD aCD;
10    double price;
11    long quantity;
12  };
13
14  typedef sequence<CatalogItem> CatalogItemArray;
15
16  interface Inventory {
17    readonly attribute CatalogItemArray catalogItemsArray;
18
19    void addCatalogItem(in CatalogItem inItem);
20    boolean inInventory(in CatalogItem inItem);
21    CatalogItemArray getCatalogItems();
22    long getQuantityInInventory(in CatalogItem inItem);
23  };
24
25};