Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / DSI_AMH / Roundtrip.h
blob16d109d0ddef10835b7fe2cacc3b37ac135797d0
2 #ifndef ROUNDTRIP_H
3 #define ROUNDTRIP_H
4 #include /**/ "ace/pre.h"
6 #include "tao/DynamicInterface/Dynamic_Implementation.h"
7 #include "tao/PortableServer/PortableServer.h"
8 #include "tao/DynamicInterface/AMH_DSI_Response_Handler.h"
10 #include "tao/ORB.h"
12 #if defined (_MSC_VER)
13 # pragma warning(push)
14 # pragma warning (disable:4250)
15 #endif /* _MSC_VER */
17 /// Implement the Test::Roundtrip interface
18 class Roundtrip
19 : public virtual PortableServer::DynamicImplementation
21 public:
22 /// Constructor
23 Roundtrip (CORBA::ORB_ptr orb);
25 // = The DSI methods
27 /// Turns around and calls invoke, but using AMH style handler
28 virtual void _dispatch (TAO_ServerRequest &request,
29 TAO::Portable_Server::Servant_Upcall *context);
31 void invoke (CORBA::ServerRequest_ptr request);
33 virtual void invoke (CORBA::ServerRequest_ptr request,
34 TAO_AMH_DSI_Response_Handler_ptr rh);
35 virtual CORBA::RepositoryId _primary_interface (
36 const PortableServer::ObjectId &oid,
37 PortableServer::POA_ptr poa);
39 private:
40 /// Use an ORB reference to convert strings to objects and shutdown
41 /// the application.
42 CORBA::ORB_var orb_;
45 #if defined(_MSC_VER)
46 # pragma warning(pop)
47 #endif /* _MSC_VER */
49 #include /**/ "ace/post.h"
50 #endif /* ROUNDTRIP_H */