Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / orbsvcs / tests / ImplRepo / ping_interrupt / server_interceptor.h
blob9b1644338b284e1d7e59f0e5766242af66c66d74
1 // -*- C++ -*-
2 #ifndef TAO_SERVER_INTERCEPTOR_H
3 #define TAO_SERVER_INTERCEPTOR_H
5 #include "tao/PI_Server/PI_Server.h"
6 #include "tao/PortableInterceptorC.h"
7 #include "tao/PortableServer/POAC.h"
8 #include "tao/LocalObject.h"
9 #include "tao/ORB.h"
11 #if !defined (ACE_LACKS_PRAGMA_ONCE)
12 # pragma once
13 #endif /* ACE_LACKS_PRAGMA_ONCE */
15 #if defined(_MSC_VER)
16 #pragma warning(push)
17 #pragma warning(disable:4250)
18 #endif /* _MSC_VER */
20 /// Server-side echo interceptor. For checking interceptor visually only.
21 class Ping_Death_Request_Interceptor
22 : public virtual PortableInterceptor::ServerRequestInterceptor,
23 public virtual ::CORBA::LocalObject
25 public:
26 // cotr.
27 Ping_Death_Request_Interceptor (int *counter);
29 // dotr.
30 ~Ping_Death_Request_Interceptor ();
31 void set_poa (PortableServer::POA_ptr poa);
33 // Canonical name of the interceptor.
34 virtual char * name ();
36 virtual void destroy ();
38 virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri);
40 virtual void receive_request_service_contexts (PortableInterceptor::ServerRequestInfo_ptr);
42 virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri);
44 virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri);
46 virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr);
48 private:
49 const char *myname_;
50 int *counter_;
51 PortableServer::POA_var poa_;
54 #if defined(_MSC_VER)
55 #pragma warning(pop)
56 #endif /* _MSC_VER */
58 #endif /* TAO_SERVER_INTERCEPTOR_H */