Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / Muxing / Receiver.h
blobd49be298f123f93cb2cc11a6cd77408a93d98774
2 #ifndef MUXING_RECEIVER_H
3 #define MUXING_RECEIVER_H
4 #include /**/ "ace/pre.h"
6 #include "TestS.h"
8 #if defined (_MSC_VER)
9 # pragma warning(push)
10 # pragma warning (disable:4250)
11 #endif /* _MSC_VER */
13 /// Implement the Test::Receiver interface
14 /**
15 * Simply print count how many bytes were received.
17 class Receiver
18 : public POA_Test::Receiver
20 public:
21 /// Constructor
22 Receiver (CORBA::ORB_ptr orb);
24 /// Print out the results
25 void dump_results ();
27 // = The skeleton methods
28 virtual void receive_data (const Test::Payload &payload);
29 virtual CORBA::Long get_event_count ();
31 virtual void shutdown ();
33 private:
34 TAO_SYNCH_MUTEX mutex_;
35 CORBA::ULong message_count_;
36 CORBA::ULong byte_count_;
37 /// Use an ORB reference to shutdown
38 /// the application.
39 CORBA::ORB_var orb_;
42 #if defined(_MSC_VER)
43 # pragma warning(pop)
44 #endif /* _MSC_VER */
46 #include /**/ "ace/post.h"
47 #endif /* MUXING_RECEIVER_H */