4 exception Invalid_Stock_Symbol
{};
5 // Used to report an invalid stock name
7 // Forward declare the Stock interface
10 interface Stock_Factory
13 // A factory class for the stock quoter interfaces
16 // Return the Quoter interfaces based on their names
18 Stock get_stock
(in string stock_symbol
)
19 raises
(Invalid_Stock_Symbol
);
25 // A simple interface to query the name and price of stock
28 // Return the price and name of a single stock
30 typedef sequence
<double> StockHistory
;
32 readonly attribute
string symbol
;
33 // Get the stock symbol.
35 readonly attribute
string full_name
;
41 StockHistory history
();