summaryrefslogtreecommitdiff
path: root/TAO/tao/Valuetype_Adapter_Factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Valuetype_Adapter_Factory.h')
-rw-r--r--TAO/tao/Valuetype_Adapter_Factory.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/TAO/tao/Valuetype_Adapter_Factory.h b/TAO/tao/Valuetype_Adapter_Factory.h
new file mode 100644
index 00000000000..dabd7e7159a
--- /dev/null
+++ b/TAO/tao/Valuetype_Adapter_Factory.h
@@ -0,0 +1,55 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file Valuetype_Adapter_Factory.h
+ *
+ * $Id$
+ *
+ * @author Kees van Marle <kvmarle@remedy.nl>
+ */
+//=============================================================================
+
+
+#ifndef TAO_VALUETYPE_ADAPTER_FACTORY_H
+#define TAO_VALUETYPE_ADAPTER_FACTORY_H
+
+#include /**/ "ace/pre.h"
+#include "ace/Service_Object.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "tao/SystemException.h"
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+class TAO_Valuetype_Adapter;
+
+/**
+ * @class TAO_Valuetype_Adapter_Factory
+ *
+ * @brief TAO_Valuetype_Adapter_Factory.
+ *
+ * Class that creates one instance of TAO_Valuetype_Adapter per
+ * ORB on the ORB's first usage of its valuetype_adapter_. This is a base
+ * class for the actual implementation in the TAO_Valuetype library.
+ */
+class TAO_Export TAO_Valuetype_Adapter_Factory
+ : public ACE_Service_Object
+{
+public:
+ virtual ~TAO_Valuetype_Adapter_Factory (void);
+
+ virtual TAO_Valuetype_Adapter * create (
+ ACE_ENV_SINGLE_ARG_DECL
+ )
+ ACE_THROW_SPEC ((CORBA::SystemException)) = 0;
+};
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+#include /**/ "ace/post.h"
+
+#endif /* TAO_VALUETYPE_ADAPTER_FACTORY_H */