Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / examples / CosEC / Simple / Consumer.h
blob687e07bd847acf628c0ccd86a4336ec43f78fb2d
1 /* -*- C++ -*- */
2 //=============================================================================
3 /**
4 * @file Consumer.h
6 * @author Carlos O'Ryan (coryan@cs.wustl.edu)
7 */
8 //=============================================================================
11 #ifndef CONSUMER_H
12 #define CONSUMER_H
14 #include "orbsvcs/CosEventCommS.h"
16 #if !defined (ACE_LACKS_PRAGMA_ONCE)
17 # pragma once
18 #endif /* ACE_LACKS_PRAGMA_ONCE */
20 /**
21 * @class Consumer
23 * @brief Simple consumer object
25 * This class is a consumer of events.
27 class Consumer : public POA_CosEventComm::PushConsumer
29 public:
30 /// Constructor
31 Consumer ();
33 /// Run the test
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 ();
42 private:
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
47 /// run() method...
48 CORBA::ORB_ptr orb_;
51 #endif /* CONSUMER_H */