Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / docs / tutorials / Quoter / idl / Quoter.idl
blob2d4eccacc8f174ff8c49d3540454991b57ab4257
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
31 readonly attribute string symbol;
32 // Get the stock symbol.
34 readonly attribute string full_name;
35 // Get the name.
37 double price ();
38 // Get the price
42 // used by the event service
43 struct Event {
44 double price;
45 string symbol;
46 string full_name;
49 interface Modify_Stock : Stock {
50 void set_price (in double new_price);