2 //=============================================================================
6 * @author Carlos O'Ryan (coryan@cs.wustl.edu)
8 //=============================================================================
14 #include "orbsvcs/CosEventCommS.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.
27 class Consumer
: public POA_CosEventComm::PushConsumer
34 int run (int argc
, ACE_TCHAR
* argv
[]);
36 // = The CosEventComm::PushConsumer methods
38 /// The skeleton methods.
39 virtual void push (const CORBA::Any
&event
);
40 virtual void disconnect_push_consumer ();
43 /// Keep track of the number of events received.
44 CORBA::ULong event_count_
;
46 /// The orb, just a pointer because the ORB does not outlive the
51 #endif /* CONSUMER_H */