Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / RTCORBA / Client_Propagated / interceptors.h
blob34cebae1f23fe94f529b5ddd05d63fd20345bbf5
1 // -*- C++ -*-
2 #ifndef INTERCEPTORS_H
3 #define INTERCEPTORS_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 Client_Request_Interceptor
20 : public virtual PortableInterceptor::ClientRequestInterceptor,
21 public virtual ::CORBA::LocalObject
23 /// Client-side interceptor. Verifies presence of RTCORBA priority
24 /// context in the reply messages.
25 public:
26 Client_Request_Interceptor (const char *orb_id);
27 // ctor.
29 virtual ~Client_Request_Interceptor ();
30 // dtor.
32 virtual char * name (void);
33 // Canonical name of the interceptor.
35 virtual void destroy (void);
37 virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr);
39 virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri);
41 virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri);
43 virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr);
45 virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri);
47 private:
48 const char *myname_;
50 CORBA::String_var orb_id_;
51 // The ID of the ORB where this interceptor was created, usually
52 // obtained from the ORBInitInfo
54 CORBA::ORB_var orb_;
58 #if defined(_MSC_VER)
59 #pragma warning(pop)
60 #endif /* _MSC_VER */
62 #endif /* TAO_INTERCEPTORS_H */