1 // Reused from: $TAO_ROOT/orbsvcs/examples/RtEC/MCast
6 #include "orbsvcs/RtecEventCommS.h"
7 #include "orbsvcs/RtecEventChannelAdminC.h"
9 #if !defined (ACE_LACKS_PRAGMA_ONCE)
11 #endif /* ACE_LACKS_PRAGMA_ONCE */
13 class Consumer
: public POA_RtecEventComm::PushConsumer
16 // Simple consumer object
19 // This class is a consumer of events.
20 // It simply subscribes to one event type.
26 void connect (RtecEventChannelAdmin::ConsumerAdmin_ptr consumer_admin
);
27 // Connect to the Event Channel
30 // Disconnect from the event channel
32 // = The RtecEventComm::PushConsumer methods
34 virtual void push (const RtecEventComm::EventSet
& events
);
35 virtual void disconnect_push_consumer ();
36 // The skeleton methods.
39 CORBA::ULong event_count_
;
40 // Keep track of the number of events received.
42 RtecEventChannelAdmin::ProxyPushSupplier_var proxy_
;
46 #endif /* CONSUMER_H */