Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / Dynamic / client_interceptor.h
blob5e340799c91ab8fa8df5e1960ba215d5ff3c3af7
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"
9 #if !defined (ACE_LACKS_PRAGMA_ONCE)
10 # pragma once
11 #endif /* ACE_LACKS_PRAGMA_ONCE */
13 #if defined(_MSC_VER)
14 #pragma warning(push)
15 #pragma warning(disable:4250)
16 #endif /* _MSC_VER */
18 class Echo_Client_Request_Interceptor
19 : public virtual PortableInterceptor::ClientRequestInterceptor,
20 public virtual ::CORBA::LocalObject
22 // = Client-side echo interceptor. For checking interceptor visually only.
23 public:
25 Echo_Client_Request_Interceptor (void);
26 // ctor.
28 virtual char * name (void);
29 // Canonical name of the interceptor.
31 virtual void destroy (void);
33 virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr);
35 virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri);
37 virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr);
39 virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri);
41 virtual void receive_exception (
42 PortableInterceptor::ClientRequestInfo_ptr ri);
44 protected:
46 virtual ~Echo_Client_Request_Interceptor (void);
47 // dtor.
49 private:
50 const char *myname_;
54 #if defined(_MSC_VER)
55 #pragma warning(pop)
56 #endif /* _MSC_VER */
58 #endif /* TAO_CLIENT_INTERCEPTOR_H */