Merge pull request #1710 from likema/cfg-assign-not-null-str
[ACE_TAO.git] / TAO / docs / tutorials / Quoter / RTCORBA / Common.idl
blobaf588feed03389b22a066e12c0a0ac38e765fc5e
1 /**
2 * @file Common.idl
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"
17 module Stock
19 exception Invalid_Stock
23 /// Contains information about a single stock.
24 struct StockInfo
26 string name;
27 long high;
28 long low;
29 long last;
32 /// Used to communicate an available update.
33 valuetype StockNames
35 public CORBA::StringSeq names;
38 valuetype Cookie
40 public string cookie_id;
43 interface Trigger
45 void start ();
46 void stop ();
49 /**
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_;
60 /**
61 * @class StockQuoter
62 * @brief Provides an interface for brokers to get detailed stock information.
64 interface StockQuoter
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);
73 #endif