summaryrefslogtreecommitdiff
path: root/TAO/tao/IORManipulation/IORManip_Loader.h
diff options
context:
space:
mode:
authorbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-09-08 19:21:08 +0000
committerbala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-09-08 19:21:08 +0000
commitba74e47a233c27e76e93fb354da8eb0ece888a25 (patch)
tree5c6d986fe04a345a52d7f3fc838865d9a0f14968 /TAO/tao/IORManipulation/IORManip_Loader.h
parent785f58ab1e699218c5de52b31d83a78ffe34386f (diff)
downloadATCD-ba74e47a233c27e76e93fb354da8eb0ece888a25.tar.gz
ChangeLogTag: Fri Sep 8 14:02:26 2000 Balachandran Natarajan <bala@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/IORManipulation/IORManip_Loader.h')
-rw-r--r--TAO/tao/IORManipulation/IORManip_Loader.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/TAO/tao/IORManipulation/IORManip_Loader.h b/TAO/tao/IORManipulation/IORManip_Loader.h
new file mode 100644
index 00000000000..24cdbe1b404
--- /dev/null
+++ b/TAO/tao/IORManipulation/IORManip_Loader.h
@@ -0,0 +1,68 @@
+/* -*- C++ -*- */
+
+// $Id$
+
+// =========================================================================
+//
+// = LIBRARY
+// TAO
+//
+// = FILENAME
+// DynamicAny.h
+//
+// = AUTHOR
+// Carlos O'Ryan <coryan@uci.edu>
+//
+// =========================================================================
+
+#ifndef TAO_IORMANIP_LAODER_H
+#define TAO_IORMANIP_LOADER_H
+#include "ace/pre.h"
+
+#include "ior_manip_export.h"
+#include "tao/Object_Loader.h"
+#include "ace/Service_Config.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+class TAO_IORManip_Export TAO_IORManip_Loader : public TAO_Object_Loader
+{
+public:
+ TAO_IORManip_Loader (void);
+ // Constructor
+
+ virtual CORBA::Object_ptr create_object (CORBA::ORB_ptr orb,
+ int argc,
+ char *argv [],
+ CORBA::Environment &)
+ ACE_THROW_SPEC (());
+ // Creates a IORManip factory and returns it.
+
+ static int Initializer (void);
+ // Used to force the initialization of the ORB code.
+};
+
+ACE_STATIC_SVC_DECLARE (TAO_IORManip_Loader)
+ACE_FACTORY_DECLARE (TAO_IORManip, TAO_IORManip_Loader)
+
+#if defined(ACE_HAS_BROKEN_STATIC_CONSTRUCTORS)
+
+typedef int (*TAO_Module_Initializer) (void);
+
+static TAO_Module_Initializer
+TAO_Requires_IORManip_Initializer = &TAO_IORManip_Loader::Initializer;
+
+#else
+
+static int
+TAO_Requires_IORManip_Initializer = TAO_IORManip_Loader::Initializer ();
+
+#endif /* ACE_HAS_BROKEN_STATIC_CONSTRUCTORS */
+
+#define TAO_IORManip_SAFE_INCLUDE
+#include "IORC.h"
+#undef TAO_IORManip_SAFE_INCLUDE
+
+#endif /* TAO_IORManip_H */