Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / Benchmark / client_interceptors.h
blobc03c79af26325755584c05a73a00935f2449e5c2
1 // -*- C++ -*-
2 #ifndef TAO_CLIENT_INTERCEPTOR_H
3 #define TAO_CLIENT_INTERCEPTOR_H
5 #include "testC.h"
7 #include "tao/PI/PI.h"
8 #include "tao/PortableInterceptorC.h"
9 #include "tao/LocalObject.h"
11 #if !defined (ACE_LACKS_PRAGMA_ONCE)
12 # pragma once
13 #endif /* ACE_LACKS_PRAGMA_ONCE */
15 #if defined(_MSC_VER)
16 #pragma warning(push)
17 #pragma warning(disable:4250)
18 #endif /* _MSC_VER */
20 class Vault_Client_Request_Interceptor
21 : public virtual PortableInterceptor::ClientRequestInterceptor,
22 public virtual ::CORBA::LocalObject
24 // = Client-side Vault interceptor. For checking interceptor visually only.
25 public:
26 Vault_Client_Request_Interceptor ();
27 // ctor.
28 virtual ~Vault_Client_Request_Interceptor ();
29 // dtor.
31 virtual char * name ();
32 // Canonical name of the interceptor.
34 virtual void destroy ();
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);
44 virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri);
46 private:
47 const char *myname_;
50 class Vault_Client_Request_Context_Interceptor
51 : public virtual PortableInterceptor::ClientRequestInterceptor,
52 public virtual ::CORBA::LocalObject
54 // = Client-side Vault interceptor. For checking interceptor visually only.
55 public:
56 Vault_Client_Request_Context_Interceptor ();
57 // ctor.
58 virtual ~Vault_Client_Request_Context_Interceptor ();
59 // dtor.
61 virtual char * name ();
62 // Canonical name of the interceptor.
64 virtual void destroy ();
66 virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr);
68 virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri);
70 virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri);
72 virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr);
74 virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri);
76 private:
77 const char *myname_;
80 class Vault_Client_Request_Dynamic_Interceptor
81 : public virtual PortableInterceptor::ClientRequestInterceptor,
82 public virtual ::CORBA::LocalObject
84 // = Client-side Vault interceptor. For checking interceptor visually only.
85 public:
86 Vault_Client_Request_Dynamic_Interceptor ();
87 // ctor.
88 virtual ~Vault_Client_Request_Dynamic_Interceptor ();
89 // dtor.
91 virtual char * name ();
92 // Canonical name of the interceptor.
94 virtual void destroy ();
96 virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr);
98 virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri);
100 virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri);
102 virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr);
104 virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri);
106 private:
107 const char *myname_;
110 class Vault_Client_Request_NOOP_Interceptor
111 : public virtual PortableInterceptor::ClientRequestInterceptor,
112 public virtual ::CORBA::LocalObject
114 // = Client-side Vault interceptor. For checking interceptor visually only.
115 public:
116 Vault_Client_Request_NOOP_Interceptor ();
117 // ctor.
118 virtual ~Vault_Client_Request_NOOP_Interceptor ();
119 // dtor.
121 virtual char * name ();
122 // Canonical name of the interceptor.
124 virtual void destroy ();
126 virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr);
128 virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri);
130 virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri);
132 virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr);
134 virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri);
136 private:
137 const char *myname_;
140 #if defined(_MSC_VER)
141 #pragma warning(pop)
142 #endif /* _MSC_VER */
144 #endif /* TAO_CLIENT_INTERCEPTOR_H */