Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / Dynamic / client_interceptor.h
blob939e199f68141c4781c1c19f8ad77f94b6f47cdd
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 /// Client-side echo interceptor. For checking interceptor visually only.
19 class Echo_Client_Request_Interceptor
20 : public virtual PortableInterceptor::ClientRequestInterceptor,
21 public virtual ::CORBA::LocalObject
23 public:
24 Echo_Client_Request_Interceptor (int& result);
26 // Canonical name of the interceptor.
27 char * name () override;
29 void destroy () override;
31 void send_poll (PortableInterceptor::ClientRequestInfo_ptr) override;
33 void send_request (PortableInterceptor::ClientRequestInfo_ptr ri) override;
35 void receive_other (PortableInterceptor::ClientRequestInfo_ptr) override;
37 void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri) override;
39 void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri) override;
41 protected:
42 ~Echo_Client_Request_Interceptor () override = default;
44 private:
45 int& result_;
48 #if defined(_MSC_VER)
49 #pragma warning(pop)
50 #endif /* _MSC_VER */
52 #endif /* TAO_CLIENT_INTERCEPTOR_H */