diff options
Diffstat (limited to 'modules/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.idl')
-rw-r--r-- | modules/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.idl | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/modules/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.idl b/modules/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.idl new file mode 100644 index 00000000000..41277386efa --- /dev/null +++ b/modules/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.idl @@ -0,0 +1,46 @@ +//$Id$ + +#ifndef STOCK_BASE_IDL +#define STOCK_BASE_IDL + +#include <Components.idl> + +module Stock +{ + exception Invalid_Stock {}; + typedef sequence<octet> ImageBlob; + + /** + * @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; + }; +}; + +#endif /* STOCK_BASE_IDL */ |