Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Bug_1495_Regression / client_interceptor.h
blob2c4921837d50ad00074452b2909261f1c1a16803
1 // -*- C++ -*-
2 #ifndef TAO_CLIENT_INTERCEPTOR_H
3 #define TAO_CLIENT_INTERCEPTOR_H
5 #include "tao/PI/PI.h"
6 #include "tao/PortableInterceptorC.h"
7 #include "tao/LocalObject.h"
8 #include "tao/ORB.h"
10 #if !defined (ACE_LACKS_PRAGMA_ONCE)
11 # pragma once
12 #endif /* ACE_LACKS_PRAGMA_ONCE */
14 #if defined(_MSC_VER)
15 #pragma warning(push)
16 #pragma warning(disable:4250)
17 #endif /* _MSC_VER */
19 class Echo_Client_Request_Interceptor
20 : public virtual PortableInterceptor::ClientRequestInterceptor,
21 public virtual ::CORBA::LocalObject
23 // = Client-side echo interceptor. For checking interceptor visually only.
24 public:
25 Echo_Client_Request_Interceptor (const char *orb_id);
26 // ctor.
28 virtual ~Echo_Client_Request_Interceptor ();
29 // dtor.
31 virtual char * name (void);
32 // Canonical name of the interceptor.
34 virtual void destroy (void);
36 virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr);
38 virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri);
40 virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri);
42 virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr ri);
44 virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri);
46 private:
47 const char *myname_;
49 CORBA::String_var orb_id_;
50 // The ID of the ORB where this interceptor was created, usually
51 // obtained from the ORBInitInfo
54 #if defined(_MSC_VER)
55 #pragma warning(pop)
56 #endif /* _MSC_VER */
58 #endif /* TAO_CLIENT_INTERCEPTOR_H */