summaryrefslogtreecommitdiff
path: root/trunk/TAO/tests/DSI_Gateway/test_dsi.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/tests/DSI_Gateway/test_dsi.h')
-rw-r--r--trunk/TAO/tests/DSI_Gateway/test_dsi.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/trunk/TAO/tests/DSI_Gateway/test_dsi.h b/trunk/TAO/tests/DSI_Gateway/test_dsi.h
new file mode 100644
index 00000000000..336f6ce56d7
--- /dev/null
+++ b/trunk/TAO/tests/DSI_Gateway/test_dsi.h
@@ -0,0 +1,69 @@
+// $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 "tao/DynamicInterface/Server_Request.h"
+#include "tao/DynamicInterface/Dynamic_Implementation.h"
+#include "tao/PortableServer/PortableServer.h"
+#include "tao/ORB.h"
+
+class DSI_Simple_Server : public TAO_DynamicImplementation
+{
+ // = TITLE
+ // DSI Simpler Server implementation
+ //
+ // = DESCRIPTION
+ // Implements the DSI/DII gateway.
+ //
+public:
+ DSI_Simple_Server (CORBA::ORB_ptr orb,
+ CORBA::Object_ptr target,
+ PortableServer::POA_ptr poa);
+ // ctor
+
+ // = The DynamicImplementation methods.
+ virtual void invoke (CORBA::ServerRequest_ptr request
+ ACE_ENV_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+ virtual CORBA::RepositoryId _primary_interface (
+ const PortableServer::ObjectId &oid,
+ PortableServer::POA_ptr poa
+ ACE_ENV_ARG_DECL
+ )
+ ACE_THROW_SPEC (());
+
+ virtual PortableServer::POA_ptr _default_POA (
+ ACE_ENV_SINGLE_ARG_DECL
+ );
+
+private:
+ CORBA::ORB_var orb_;
+ // The ORB
+
+ CORBA::Object_var target_;
+ // Target object, forward requests to it...
+
+ PortableServer::POA_var poa_;
+ // The POA
+};
+
+#if defined(__ACE_INLINE__)
+#include "test_dsi.inl"
+#endif /* __ACE_INLINE__ */
+
+#endif /* TAO_DSI_GATEWAY_TEST_I_H */