Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / DSI_Gateway / test_dsi.h
blob62e13ed5b1050dbb824fc2317df34575e5be3996
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
42 virtual PortableServer::POA_ptr _default_POA (
45 private:
46 /// The ORB
47 CORBA::ORB_var orb_;
49 /// Target object, forward requests to it...
50 CORBA::Object_var target_;
52 /// The POA
53 PortableServer::POA_var poa_;
56 #if defined(__ACE_INLINE__)
57 #include "test_dsi.inl"
58 #endif /* __ACE_INLINE__ */
60 #endif /* TAO_DSI_GATEWAY_TEST_I_H */