summaryrefslogtreecommitdiff
path: root/CIAO/docs/tutorials/Quoter/Simple/Broker/Broker.idl
blob: dbe9a04364a1d75ea40102f5ad3013529fffcb72 (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
//$Id$

#include "../Stock_Base/Stock_Base.idl"

module Stock
{
  interface StockSubscriber {
    /// subscribe to an interested stock
    void stock_subscribe (in string stock_name)
          raises (Invalid_Stock);
    /// unsubscribe to an stock
    void stock_unsubscribe (in string stock_name)
          raises (Invalid_Stock);
  };

  /**
   * @class StockBroker
   *
   * @brief component
   */
  component StockBroker supports StockSubscriber
  {
    consumes StockName notify_in;
    uses StockQuoter read_quoter;
  };

  /**
   * @class StockBrokerHome
   *
   * @brief home for StockBroker component
   */
  home StockBrokerHome manages StockBroker
  {
  };
};