Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / Benchmark / server_interceptors.h
blob0f2492ffa39a9b94e8ee64331d14b77514a79422
1 // -*- C++ -*-
2 #ifndef TAO_SERVER_INTERCEPTOR_H
3 #define TAO_SERVER_INTERCEPTOR_H
5 #include "testC.h"
7 #include "tao/PI_Server/PI_Server.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_Server_Request_Interceptor
21 : public virtual PortableInterceptor::ServerRequestInterceptor,
22 public virtual ::CORBA::LocalObject
24 // = Server-side Vault interceptor. For checking interceptor visually only.
25 public:
26 Vault_Server_Request_Interceptor (void);
27 // cotr.
28 ~Vault_Server_Request_Interceptor ();
29 // dotr.
31 virtual char * name (void);
32 // Canonical name of the interceptor.
34 virtual void destroy (void);
36 virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri);
38 virtual void receive_request_service_contexts (
39 PortableInterceptor::ServerRequestInfo_ptr);
41 virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri);
43 virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri);
45 virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr);
47 private:
48 const char *myname_;
51 class Vault_Server_Request_Context_Interceptor
52 : public virtual PortableInterceptor::ServerRequestInterceptor,
53 public virtual ::CORBA::LocalObject
55 // = Server-side Vault interceptor. For checking interceptor visually only.
56 public:
57 Vault_Server_Request_Context_Interceptor (void);
58 // cotr.
59 ~Vault_Server_Request_Context_Interceptor ();
60 // dotr.
62 virtual char * name (void);
63 // Canonical name of the interceptor.
65 virtual void destroy (void);
67 virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri);
69 virtual void receive_request_service_contexts (
70 PortableInterceptor::ServerRequestInfo_ptr);
72 virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri);
74 virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri);
76 virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr);
78 private:
79 const char *myname_;
82 class Vault_Server_Request_Dynamic_Interceptor
83 : public virtual PortableInterceptor::ServerRequestInterceptor,
84 public virtual ::CORBA::LocalObject
86 // = Server-side Vault interceptor. For checking interceptor visually only.
87 public:
88 Vault_Server_Request_Dynamic_Interceptor (void);
89 // cotr.
90 ~Vault_Server_Request_Dynamic_Interceptor ();
91 // dotr.
93 virtual char * name (void);
94 // Canonical name of the interceptor.
96 virtual void destroy (void);
98 virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri);
100 virtual void receive_request_service_contexts (
101 PortableInterceptor::ServerRequestInfo_ptr);
103 virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri);
105 virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri);
107 virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr);
109 private:
110 const char *myname_;
113 class Vault_Server_Request_NOOP_Interceptor
114 : public virtual PortableInterceptor::ServerRequestInterceptor,
115 public virtual ::CORBA::LocalObject
117 // = Server-side Vault interceptor. For checking interceptor visually only.
118 public:
119 Vault_Server_Request_NOOP_Interceptor (void);
120 // cotr.
121 ~Vault_Server_Request_NOOP_Interceptor ();
122 // dotr.
124 virtual char * name (void);
125 // Canonical name of the interceptor.
127 virtual void destroy (void);
129 virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri);
131 virtual void receive_request_service_contexts (
132 PortableInterceptor::ServerRequestInfo_ptr);
134 virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri);
136 virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri);
138 virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr);
140 private:
141 const char *myname_;
144 #if defined(_MSC_VER)
145 #pragma warning(pop)
146 #endif /* _MSC_VER */
148 #endif /* TAO_SERVER_INTERCEPTOR_H */