5 * @author Carlos O'Ryan (coryan@cs.wustl.edu)
13 #include "orbsvcs/RtecEventCommS.h"
15 #if !defined (ACE_LACKS_PRAGMA_ONCE)
17 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 * @brief Simple consumer object
24 * This class is a consumer of events. It simply registers for one event type.
26 class Consumer
: public POA_RtecEventComm::PushConsumer
33 int run (int argc
, ACE_TCHAR
* argv
[]);
35 // = The RtecEventComm::PushConsumer methods
37 // The skeleton methods.
38 virtual void push (const RtecEventComm::EventSet
& events
);
39 virtual void disconnect_push_consumer ();
42 int parse_args (int argc
, ACE_TCHAR
*argv
[]);
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 */