Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / Collocated / Dynamic / interceptors.h
blob48808b448beb5cd4116e42162108d12f55acd17b
1 // -*- C++ -*-
2 #ifndef TAO_INTERCEPTORS_H
3 #define TAO_INTERCEPTORS_H
4 #include /**/ "ace/pre.h"
6 #include "tao/PI/PI.h"
8 #if !defined (ACE_LACKS_PRAGMA_ONCE)
9 # pragma once
10 #endif /* ACE_LACKS_PRAGMA_ONCE */
12 #include "tao/PI_Server/PI_Server.h"
13 #include "tao/PortableInterceptorC.h"
14 #include "tao/LocalObject.h"
16 #if defined(_MSC_VER)
17 #pragma warning(push)
18 #pragma warning(disable:4250)
19 #endif /* _MSC_VER */
21 class Echo_Client_Request_Interceptor
22 : public virtual PortableInterceptor::ClientRequestInterceptor,
23 public virtual ::CORBA::LocalObject
25 // = Client-side echo interceptor. For checking interceptor visually only.
26 public:
27 Echo_Client_Request_Interceptor ();
28 // ctor.
29 virtual ~Echo_Client_Request_Interceptor ();
30 // dtor.
32 virtual char * name ();
33 // Canonical name of the interceptor.
35 virtual void destroy ();
37 virtual void send_poll (
38 PortableInterceptor::ClientRequestInfo_ptr);
40 virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri);
42 virtual void receive_other (
43 PortableInterceptor::ClientRequestInfo_ptr);
45 virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri);
47 virtual void receive_exception (
48 PortableInterceptor::ClientRequestInfo_ptr ri);
50 // Some identifiers that are used for error checking
51 static CORBA::ULong client_interceptor_check_;
52 private:
53 const char *myname_;
56 class Echo_Server_Request_Interceptor
57 : public PortableInterceptor::ServerRequestInterceptor,
58 public virtual ::CORBA::LocalObject
60 // = Server-side echo interceptor. For checking interceptor visually only.
61 public:
62 Echo_Server_Request_Interceptor ();
63 // cotr.
64 ~Echo_Server_Request_Interceptor ();
65 // dotr.
67 virtual char * name ();
68 // Canonical name of the interceptor.
70 virtual void destroy ();
72 virtual void receive_request_service_contexts (
73 PortableInterceptor::ServerRequestInfo_ptr);
75 virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri);
77 virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri);
79 virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri);
81 virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr);
83 // Some identifiers that are used for error checking
84 static CORBA::ULong server_interceptor_check_;
86 private:
87 const char *myname_;
90 #if defined(_MSC_VER)
91 #pragma warning(pop)
92 #endif /* _MSC_VER */
94 #include /**/ "ace/post.h"
95 #endif /* TAO_INTERCEPTORS_H */