Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / Bug_3598a_Regression / ClientRequest_Interceptor.h
blob1ba41d68abafc01bd3ee162193c0c50a67baafec
1 // -*- C++ -*-
2 //=============================================================================
3 /**
4 * @file ClientRequest_Interceptor.h
5 */
6 //=============================================================================
7 #ifndef CLIENTREQUEST_INTERCEPTOR_H
8 #define CLIENTREQUEST_INTERCEPTOR_H
9 #include /**/ "ace/pre.h"
11 #include "tao/PI/PI.h"
12 #include "tao/PortableInterceptorC.h"
13 #include "tao/LocalObject.h"
15 // This is to remove "inherits via dominance" warnings from MSVC.
16 // MSVC is being a little too paranoid.
17 #if defined(_MSC_VER)
18 #pragma warning(push)
19 #pragma warning(disable:4250)
20 #endif /* _MSC_VER */
22 /**
23 * @class ClientRequest_Interceptor
26 class ClientRequest_Interceptor
27 : public virtual PortableInterceptor::ClientRequestInterceptor,
28 public virtual ::CORBA::LocalObject
30 public:
31 ClientRequest_Interceptor ();
33 ~ClientRequest_Interceptor ();
35 /// Canonical name of the interceptor.
36 virtual char * name ();
39 virtual void destroy ();
41 virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr);
43 virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri);
45 virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri);
47 virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr ri);
49 virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri);
51 static CORBA::Boolean success_flag_;
53 private:
54 /// Name of the interceptor
55 const char *name_;
57 #if defined(_MSC_VER)
58 #pragma warning(pop)
59 #endif /* _MSC_VER */
61 #include /**/ "ace/post.h"
62 #endif /*CLIENTREQUEST_INTERCEPTOR_H*/