// $Id$ // ============================================================================ // // = LIBRARY // TAO/tests/DSI_Gateway // // = FILENAME // test_i.h // // = AUTHOR // Carlos O'Ryan // // ============================================================================ #ifndef TAO_DSI_GATEWAY_TEST_DSI_H #define TAO_DSI_GATEWAY_TEST_DSI_H #include "testS.h" #include "tao/DynamicInterface/Server_Request.h" #include "tao/DynamicInterface/Dynamic_Implementation.h" class DSI_Simple_Server : public TAO_DynamicImplementation { // = TITLE // Simpler Server implementation // // = DESCRIPTION // Implements the Simple_Server interface in test.idl // public: DSI_Simple_Server (CORBA::ORB_ptr orb, Simple_Server_ptr target, PortableServer::POA_ptr poa); // ctor // = The DynamicImplementation methods. virtual void invoke (CORBA::ServerRequest_ptr request, CORBA::Environment &env) ACE_THROW_SPEC ((CORBA::SystemException)); virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &oid, PortableServer::POA_ptr poa, CORBA::Environment &ACE_TRY_ENV) ACE_THROW_SPEC (()); virtual PortableServer::POA_ptr _default_POA (CORBA::Environment &ACE_TRY_ENV); private: CORBA::ORB_var orb_; // The ORB Simple_Server_var target_; // Target object, forward requests to it... PortableServer::POA_var poa_; // The POA }; #if defined(__ACE_INLINE__) #include "test_dsi.i" #endif /* __ACE_INLINE__ */ #endif /* TAO_DSI_GATEWAY_TEST_I_H */