summaryrefslogtreecommitdiff
path: root/trunk/TAO/orbsvcs/tests/Event/Mcast/RTEC_MCast_Federated/EchoEventConsumer_i.h
blob: f9f0f6168e5880d9b60b6cab2fea1b7285e495d9 (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
// $Id$

// EchoEventConsumer_i.h
// Implements a PushConsumer.

#ifndef _EchoEventConsumer_i_h_
#define _EchoEventConsumer_i_h_

#include <orbsvcs/RtecEventCommS.h>    // for POA_CosEventComm::PushConsumer

class EchoEventConsumer_i : public virtual POA_RtecEventComm::PushConsumer
{
  public:
    // Constructor
    EchoEventConsumer_i(CORBA::ORB_ptr orb, int event_limit);

    // Override operations from PushConsumer interface.
    virtual void push(const RtecEventComm::EventSet& events)
     throw(CORBA::SystemException);

    virtual void disconnect_push_consumer()
     throw(CORBA::SystemException);

  private:
    CORBA::ORB_var orb_;
    int event_limit_;
};

#endif // _EchoEventConsumer_i_h_