Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / examples / RtEC / IIOPGateway / Consumer.h
blobb64b43bee56a7b59307091beef0f8107ab12fc40
1 /* -*- C++ -*- */
2 /**
3 * @file Consumer.h
5 * @author Carlos O'Ryan (coryan@cs.wustl.edu)
7 * Consumer
8 */
10 #ifndef CONSUMER_H
11 #define CONSUMER_H
13 #include "orbsvcs/RtecEventCommS.h"
15 #if !defined (ACE_LACKS_PRAGMA_ONCE)
16 # pragma once
17 #endif /* ACE_LACKS_PRAGMA_ONCE */
19 /**
20 * @class Consumer
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
28 public:
29 /// Constructor
30 Consumer ();
32 /// Run the test
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 ();
41 private:
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
48 /// run() method...
49 CORBA::ORB_ptr orb_;
52 #endif /* CONSUMER_H */