Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / DSI_Gateway / test_dsi.h
blob75f89b17ed7e03a716f403419bd2f7cedf000bfa
2 //=============================================================================
3 /**
4 * @file test_dsi.h
6 * @author Carlos O'Ryan
7 */
8 //=============================================================================
11 #ifndef TAO_DSI_GATEWAY_TEST_DSI_H
12 #define TAO_DSI_GATEWAY_TEST_DSI_H
14 #include "tao/DynamicInterface/Server_Request.h"
15 #include "tao/DynamicInterface/Dynamic_Implementation.h"
16 #include "tao/PortableServer/PortableServer.h"
17 #include "tao/ORB.h"
19 /**
20 * @class DSI_Simple_Server
22 * @brief DSI Simpler Server implementation
24 * Implements the DSI/DII gateway.
26 class DSI_Simple_Server : public TAO_DynamicImplementation
28 public:
29 /// ctor
30 DSI_Simple_Server (CORBA::ORB_ptr orb,
31 CORBA::Object_ptr target,
32 PortableServer::POA_ptr poa);
34 // = The DynamicImplementation methods.
35 virtual void invoke (CORBA::ServerRequest_ptr request);
37 virtual CORBA::RepositoryId _primary_interface (
38 const PortableServer::ObjectId &oid,
39 PortableServer::POA_ptr poa);
41 virtual PortableServer::POA_ptr _default_POA ();
43 private:
44 /// The ORB
45 CORBA::ORB_var orb_;
47 /// Target object, forward requests to it...
48 CORBA::Object_var target_;
50 /// The POA
51 PortableServer::POA_var poa_;
54 #if defined(__ACE_INLINE__)
55 #include "test_dsi.inl"
56 #endif /* __ACE_INLINE__ */
58 #endif /* TAO_DSI_GATEWAY_TEST_I_H */