Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / DevGuideExamples / EventServices / OMG_Basic / EchoEventConsumer_i.h
blobf74c6545761408e3636d8cbc64499ba5a57a1690
1 // EchoEventConsumer_i.h
2 // Implements a PushConsumer.
4 #ifndef _EchoEventConsumer_i_h_
5 #define _EchoEventConsumer_i_h_
7 #include "orbsvcs/CosEventCommS.h"// for POA_CosEventComm::PushConsumer
8 #include "orbsvcs/CosEventChannelAdminC.h"
10 class EchoEventConsumer_i : public virtual POA_CosEventComm::PushConsumer
12 public:
13 // Constructor
14 EchoEventConsumer_i(CORBA::ORB_ptr orb,
15 CosEventChannelAdmin::ProxyPushSupplier_ptr supplier,
16 int event_limit);
18 // Override operations from PushConsumer interface.
19 virtual void push(const CORBA::Any & data);
21 virtual void disconnect_push_consumer();
23 private:
24 CORBA::ORB_var orb_;
25 CosEventChannelAdmin::ProxyPushSupplier_var supplier_;
26 int event_limit_;
29 #endif // _EchoEventConsumer_i_h_