summaryrefslogtreecommitdiff
path: root/trunk/TAO/tao/AnyTypeCode/Value_TypeCode.inl
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/tao/AnyTypeCode/Value_TypeCode.inl')
-rw-r--r--trunk/TAO/tao/AnyTypeCode/Value_TypeCode.inl60
1 files changed, 60 insertions, 0 deletions
diff --git a/trunk/TAO/tao/AnyTypeCode/Value_TypeCode.inl b/trunk/TAO/tao/AnyTypeCode/Value_TypeCode.inl
new file mode 100644
index 00000000000..e5b0b3ab2f1
--- /dev/null
+++ b/trunk/TAO/tao/AnyTypeCode/Value_TypeCode.inl
@@ -0,0 +1,60 @@
+// -*- C++ -*-
+//
+// $Id$
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+template <typename StringType,
+ typename TypeCodeType,
+ class FieldArrayType,
+ class RefCountPolicy>
+ACE_INLINE
+TAO::TypeCode::Value<StringType,
+ TypeCodeType,
+ FieldArrayType,
+ RefCountPolicy>::Value (
+ CORBA::TCKind kind,
+ char const * id,
+ char const * name,
+ CORBA::ValueModifier modifier,
+#if defined (__BORLANDC__) && (__BORLANDC__ < 0x572)
+ // Borland C++ currently can't handle a reference to
+ // const pointer to const CORBA::TypeCode_ptr
+ TypeCodeType concrete_base,
+#else
+ TypeCodeType const & concrete_base,
+#endif
+ FieldArrayType const & fields,
+ CORBA::ULong nfields)
+ : ::CORBA::TypeCode (kind)
+ , RefCountPolicy ()
+ , base_attributes_ (id, name)
+ , type_modifier_ (modifier)
+ , concrete_base_ (concrete_base)
+ , nfields_ (nfields)
+ , fields_ (fields)
+{
+}
+
+template <typename StringType,
+ typename TypeCodeType,
+ class FieldArrayType,
+ class RefCountPolicy>
+ACE_INLINE
+TAO::TypeCode::Value<StringType,
+ TypeCodeType,
+ FieldArrayType,
+ RefCountPolicy>::Value (
+ CORBA::TCKind kind,
+ char const * id)
+ : ::CORBA::TypeCode (kind)
+ , RefCountPolicy ()
+ , base_attributes_ (id)
+ , type_modifier_ (CORBA::VM_NONE)
+ , concrete_base_ ()
+ , nfields_ (0)
+ , fields_ ()
+{
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL