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

#ifndef STOCKBROKER_IDL
#define STOCKBROKER_IDL

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

#endif /* STOCKBROKER_IDL */