summaryrefslogtreecommitdiff
path: root/TAO/tao/Valuetype_Adapter.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Valuetype_Adapter.h')
-rw-r--r--TAO/tao/Valuetype_Adapter.h88
1 files changed, 88 insertions, 0 deletions
diff --git a/TAO/tao/Valuetype_Adapter.h b/TAO/tao/Valuetype_Adapter.h
new file mode 100644
index 00000000000..9f656225bf7
--- /dev/null
+++ b/TAO/tao/Valuetype_Adapter.h
@@ -0,0 +1,88 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file Valuetype_Adapter.h
+ *
+ * $Id$
+ *
+ * @author Jeff Parsons <j.parsons@vanderbilt.edu>
+ */
+//=============================================================================
+
+#ifndef TAO_VALUETYPE_ADAPTER_H
+#define TAO_VALUETYPE_ADAPTER_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/TAO_Export.h"
+#include "tao/Basic_Types.h"
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+namespace CORBA
+{
+ class Object;
+ typedef Object *Object_ptr;
+
+ class AbstractBase;
+ typedef AbstractBase *AbstractBase_ptr;
+
+ class ValueBase;
+
+ class ValueFactoryBase;
+ typedef ValueFactoryBase *ValueFactory;
+}
+
+class TAO_InputCDR;
+
+/**
+ * @class TAO_Valuetype_Adapter
+ *
+ * @brief TAO_Valuetype_Adapter.
+ *
+ * Class that adapts various functions involving the Valuetype,
+ * ValueFactory and AbstractInterface classes. This is a base class for
+ * the actual implementation in the TAO_Valuetype library.
+ */
+class TAO_Export TAO_Valuetype_Adapter : public ACE_Service_Object
+{
+public:
+ virtual ~TAO_Valuetype_Adapter (void);
+
+ virtual CORBA::Object_ptr abstractbase_to_object (
+ CORBA::AbstractBase_ptr p
+ ) = 0;
+
+ virtual CORBA::Boolean stream_to_value (TAO_InputCDR &,
+ CORBA::ValueBase *&) = 0;
+
+ virtual CORBA::Boolean stream_to_abstract_base (
+ TAO_InputCDR &,
+ CORBA::AbstractBase_ptr &
+ ) = 0;
+
+ virtual CORBA::Long type_info_single (void) const = 0;
+
+ virtual CORBA::Boolean is_type_info_implied (CORBA::Long) const = 0;
+ virtual CORBA::Boolean is_type_info_single (CORBA::Long) const = 0;
+ virtual CORBA::Boolean is_type_info_list (CORBA::Long) const = 0;
+ virtual CORBA::Boolean is_value_chunked (CORBA::Long) const = 0;
+
+ virtual int vf_map_rebind (const char *,
+ CORBA::ValueFactory &) = 0;
+
+ virtual int vf_map_unbind (const char *) = 0;
+
+ virtual CORBA::ValueFactory vf_map_find (const char *) = 0;
+};
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+#include /**/ "ace/post.h"
+#endif /* TAO_VALUETYPE_ADAPTER_H */