diff options
Diffstat (limited to 'TAO/CIAO/DAnCE/examples/Quoter/Stock_Base/Stock_Base.idl')
-rw-r--r-- | TAO/CIAO/DAnCE/examples/Quoter/Stock_Base/Stock_Base.idl | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/TAO/CIAO/DAnCE/examples/Quoter/Stock_Base/Stock_Base.idl b/TAO/CIAO/DAnCE/examples/Quoter/Stock_Base/Stock_Base.idl new file mode 100644 index 00000000000..a107b070529 --- /dev/null +++ b/TAO/CIAO/DAnCE/examples/Quoter/Stock_Base/Stock_Base.idl @@ -0,0 +1,40 @@ +//$Id$ + +#include <Components.idl> + +module Stock +{ + exception Invalid_Stock {}; + + /** + * @struct StockInfo + */ + struct StockInfo { + string name; + long high; + long low; + long last; + }; + + /** + * @interface: StockQuoter + * + * @brief: component facet + */ + interface StockQuoter { + /// Returns the current stock info + StockInfo get_stock_info (in string stock_name) + raises (Invalid_Stock); + }; + + + /** + * @event StockName + * + * @brief component event + */ + eventtype StockName { + // Name of the stock. + public string name; + }; +}; |