summaryrefslogtreecommitdiff
path: root/modules/CIAO/docs/tutorials/Quoter/Simple/Stock_Base/Stock_Base.idl
blob: b038cdca50987805f8bd3009ed07143135b55b3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//$Id$

#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;
  };
};