3 * @author Shanshan Jiang <shanshan.jiang@vanderbilt.edu>
4 * @author William R. Otte <wotte@dre.vanderbilt.edu>
5 * @author Douglas C. Schmidt <schmidt@dre.vanderbilt.edu>
8 * Contains common IDL definitions in the Publish/Subscribe Real-time CORBA
9 * Stock Quoter Service.
12 #ifndef QUOTER_COMMON_IDL
13 #define QUOTER_COMMON_IDL
15 #include
"tao/StringSeq.pidl"
19 exception Invalid_Stock
23 /// Contains information about a single stock.
32 /// Used to communicate an available update.
35 public CORBA
::StringSeq names
;
40 public string cookie_id
;
50 * @class StockNameConsumer
51 * @brief Callback interface used by the distributor to notify brokers of updates.
53 interface StockNameConsumer
55 void push_StockName
(in StockNames the_stocknames
);
57 attribute Cookie cookie_
;
62 * @brief Provides an interface for brokers to get detailed stock information.
66 /// Returns detailed stock information to brokers.
67 /// @param stockname A valid name for a stock.
68 /// @returns Completed stockinfo struct.
69 StockInfo get_stock_info
(in string stock_name
) raises
(Invalid_Stock
);