Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / Bug_3598b_Regression / ClientRequest_Interceptor.h
blob53d5ad3bed2a4d8ebd36018c693be7b85a9920af
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:
32 ClientRequest_Interceptor (void);
34 ~ClientRequest_Interceptor (void);
36 /// Canonical name of the interceptor.
37 virtual char * name ();
40 virtual void destroy ();
42 virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr);
44 virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri);
46 virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri);
48 virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr ri);
50 virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri);
52 static CORBA::Boolean success_flag_;
54 private:
56 /// Name of the interceptor
57 const char *name_;
60 #if defined(_MSC_VER)
61 #pragma warning(pop)
62 #endif /* _MSC_VER */
64 #include /**/ "ace/post.h"
65 #endif /*CLIENTREQUEST_INTERCEPTOR_H*/