Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Bug_1495_Regression / server_interceptor.h
blob3338dd0fdbba851a7be344073acd782a2efdabfc
1 // -*- C++ -*-
2 #ifndef TAO_SERVER_INTERCEPTOR_H
3 #define TAO_SERVER_INTERCEPTOR_H
5 #include "tao/PI_Server/PI_Server.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 Echo_Server_Request_Interceptor
20 : public virtual PortableInterceptor::ServerRequestInterceptor,
21 public virtual ::CORBA::LocalObject
23 // = Server-side echo interceptor. For checking interceptor visually only.
24 public:
25 Echo_Server_Request_Interceptor ();
26 // cotr.
28 Echo_Server_Request_Interceptor (CORBA::Object_ptr forward_location);
30 ~Echo_Server_Request_Interceptor ();
31 // dotr.
33 void forward_reference (CORBA::Object_ptr forward_location);
35 virtual char * name ();
36 // Canonical name of the interceptor.
38 virtual void destroy ();
40 virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri);
42 virtual void receive_request_service_contexts (
43 PortableInterceptor::ServerRequestInfo_ptr);
45 virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri);
47 virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri);
49 virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr ri);
51 bool forward_location_done() const;
52 private:
53 const char *myname_;
54 CORBA::Object_var forward_location_;
55 bool forward_location_done_;
58 #if defined(_MSC_VER)
59 #pragma warning(pop)
60 #endif /* _MSC_VER */
62 #endif /* TAO_SERVER_INTERCEPTOR_H */