2 //=============================================================================
6 * @author Carlos O'Ryan (coryan@cs.wustl.edu)
8 //=============================================================================
14 #include "orbsvcs/RtecEventCommS.h"
16 #if !defined (ACE_LACKS_PRAGMA_ONCE)
18 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 * @brief Simple consumer object
25 * This class is a consumer of events.
26 * It simply registers for one event type.
28 class Consumer
: public POA_RtecEventComm::PushConsumer
35 int run (int argc
, ACE_TCHAR
* argv
[]);
37 // = The RtecEventComm::PushConsumer methods
39 /// The skeleton methods.
40 virtual void push (const RtecEventComm::EventSet
& events
);
41 virtual void disconnect_push_consumer ();
44 /// Keep track of the number of events received.
45 CORBA::ULong event_count_
;
47 /// The orb, just a pointer because the ORB does not outlive the
52 #endif /* CONSUMER_H */