summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/ImR/Combined_Service/dynserver.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/examples/ImR/Combined_Service/dynserver.h')
-rw-r--r--TAO/orbsvcs/examples/ImR/Combined_Service/dynserver.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/TAO/orbsvcs/examples/ImR/Combined_Service/dynserver.h b/TAO/orbsvcs/examples/ImR/Combined_Service/dynserver.h
new file mode 100644
index 00000000000..c222ebe531e
--- /dev/null
+++ b/TAO/orbsvcs/examples/ImR/Combined_Service/dynserver.h
@@ -0,0 +1,58 @@
+// $Id$
+#ifndef DYNSERVER_H
+#define DYNSERVER_H
+
+#include "dynserver_export.h"
+
+#include "testS.h"
+
+#include "tao/Object_Loader.h"
+
+#include "ace/Auto_Ptr.h"
+
+// Trivial test corba object
+class DynServer_Export DynServer
+ : public POA_test
+{
+ int n_;
+public:
+ DynServer(void);
+ virtual ~DynServer();
+ virtual CORBA::Long get() ACE_THROW_SPEC ((CORBA::SystemException));
+};
+
+class DynServer_ORB_Runner;
+
+// This dll supports the service configurator framework
+class DynServer_Export DynServer_Loader : public TAO_Object_Loader
+{
+public:
+ DynServer_Loader(void);
+
+ // spawns a thread to run an internal orb which has activated
+ // a single DynServer servant.
+ virtual int init (int argc, ACE_TCHAR *argv[]);
+
+ // Allows the service configurator to shutdown the orb
+ virtual int fini (void);
+
+ // Not supported
+ virtual CORBA::Object_ptr create_object (CORBA::ORB_ptr orb,
+ int argc,
+ ACE_TCHAR *argv[])
+ ACE_THROW_SPEC ((CORBA::SystemException));
+
+private:
+ CORBA::ORB_var orb_;
+ PortableServer::POA_var root_poa_;
+ DynServer service_;
+ ACE_Auto_Ptr<DynServer_ORB_Runner> runner_;
+
+private:
+ ACE_UNIMPLEMENTED_FUNC (DynServer_Loader (const DynServer_Loader &))
+ ACE_UNIMPLEMENTED_FUNC (DynServer_Loader &operator = (const DynServer_Loader &))
+};
+
+ACE_FACTORY_DECLARE (DynServer, DynServer_Loader)
+
+#endif