Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / docs / tutorials / Quoter / AMI / Quoter.idl
blob83c7bb67ffa1cca7fab77708043f078946a416c5
2 module Quoter
4 /// Used to report an invalid stock name
5 exception Invalid_Stock_Symbol {};
7 /// Forward declare the Stock interface
8 interface Stock;
10 /// A factory class for the stock quoter interfaces
11 interface Stock_Factory
13 /// Return the Quoter interfaces based on their names
14 Stock get_stock (in string stock_symbol)
15 raises (Invalid_Stock_Symbol);
18 /// A simple interface to query the name and price of stock
19 interface Stock
21 /// Get the stock symbol.
22 readonly attribute string symbol;
24 /// Get the name.
25 readonly attribute string full_name;
27 /// Get the price
28 double price ();
31 interface Single_Query_Stock : Stock {
32 double get_price_and_names (out string symbol,
33 out string full_name);