summaryrefslogtreecommitdiff
path: root/ACE/TAO/docs/tutorials/Quoter/On_Demand_Activation/Quoter.idl
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/docs/tutorials/Quoter/On_Demand_Activation/Quoter.idl')
-rw-r--r--ACE/TAO/docs/tutorials/Quoter/On_Demand_Activation/Quoter.idl49
1 files changed, 49 insertions, 0 deletions
diff --git a/ACE/TAO/docs/tutorials/Quoter/On_Demand_Activation/Quoter.idl b/ACE/TAO/docs/tutorials/Quoter/On_Demand_Activation/Quoter.idl
new file mode 100644
index 00000000000..80cfa1661d1
--- /dev/null
+++ b/ACE/TAO/docs/tutorials/Quoter/On_Demand_Activation/Quoter.idl
@@ -0,0 +1,49 @@
+//
+// $Id$
+//
+
+module Quoter
+{
+ exception Invalid_Stock_Symbol {};
+ // Used to report an invalid stock name
+
+ // Forward declare the Stock interface
+ interface Stock;
+
+ interface Stock_Factory
+ {
+ // = TITLE
+ // A factory class for the stock quoter interfaces
+ //
+ // = DESCRIPTION
+ // Return the Quoter interfaces based on their names
+ //
+ Stock get_stock (in string stock_symbol)
+ raises (Invalid_Stock_Symbol);
+ };
+
+ interface Stock
+ {
+ // = TITLE
+ // A simple interface to query the name and price of stock
+ //
+ // = DESCRIPTION
+ // Return the price and name of a single stock
+ //
+
+ readonly attribute string symbol;
+ // Get the stock symbol.
+
+ readonly attribute string full_name;
+ // Get the name.
+
+ double price ();
+ // Get the price
+
+ };
+
+ interface Single_Query_Stock : Stock {
+ double get_price_and_names (out string symbol,
+ out string full_name);
+ };
+};