Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / Bug_2560_Regression / Quoter.idl
blobd3ba6eb79048cf06a2ac184e01d1b884e4753be1
2 module Quoter
4 exception Invalid_Stock_Symbol {};
5 // Used to report an invalid stock name
7 // Forward declare the Stock interface
8 interface Stock;
10 interface Stock_Factory
12 // = TITLE
13 // A factory class for the stock quoter interfaces
15 // = DESCRIPTION
16 // Return the Quoter interfaces based on their names
18 Stock get_stock (in string stock_symbol)
19 raises (Invalid_Stock_Symbol);
22 interface Stock
24 // = TITLE
25 // A simple interface to query the name and price of stock
27 // = DESCRIPTION
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;
36 // Get the name.
38 double price ();
39 // Get the price
41 StockHistory history();