summaryrefslogtreecommitdiff
path: root/TAO/tao/Messaging/Messaging_SyncScope_PolicyC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Messaging/Messaging_SyncScope_PolicyC.cpp')
-rw-r--r--TAO/tao/Messaging/Messaging_SyncScope_PolicyC.cpp335
1 files changed, 210 insertions, 125 deletions
diff --git a/TAO/tao/Messaging/Messaging_SyncScope_PolicyC.cpp b/TAO/tao/Messaging/Messaging_SyncScope_PolicyC.cpp
index 563daee8b0b..aa38d93d9d4 100644
--- a/TAO/tao/Messaging/Messaging_SyncScope_PolicyC.cpp
+++ b/TAO/tao/Messaging/Messaging_SyncScope_PolicyC.cpp
@@ -15,16 +15,28 @@
// Irvine, CA
// USA
// http://doc.ece.uci.edu/
+// and
+// Institute for Software Integrated Systems
+// Vanderbilt University
+// Nashville, TN
+// USA
+// http://www.isis.vanderbilt.edu/
//
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:314
+// be/be_codegen.cpp:301
#include "Messaging_SyncScope_PolicyC.h"
#include "tao/Stub.h"
+#include "tao/Invocation_Adapter.h"
+#include "tao/Object_T.h"
+#include "tao/Any_Impl_T.h"
+#include "tao/Any_Dual_Impl_T.h"
+#include "tao/Any_Basic_Impl_T.h"
+#include "tao/Basic_Arguments.h"
#if defined (__BORLANDC__)
#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
@@ -35,80 +47,79 @@
#endif /* !defined INLINE */
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:61
-
-int Messaging::SyncScopePolicy::_tao_class_id = 0;
+// be/be_visitor_arg_traits.cpp:59
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
- template class
- TAO_Objref_Var_T<
- Messaging::SyncScopePolicy,
- Messaging::tao_SyncScopePolicy_life
- >;
- template class
- TAO_Objref_Out_T<
- Messaging::SyncScopePolicy,
- Messaging::tao_SyncScopePolicy_life
- >;
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-# pragma instantiate \
- TAO_Objref_Var_T< \
- Messaging::SyncScopePolicy, \
- Messaging::tao_SyncScopePolicy_life \
- >
-# pragma instantiate \
- TAO_Objref_Out_T< \
- Messaging::SyncScopePolicy, \
- Messaging::tao_SyncScopePolicy_life \
- >
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+// Arg traits specializations.
+namespace TAO
+{
+};
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:232
+// be/be_visitor_interface/interface_cs.cpp:60
-Messaging::SyncScopePolicy::SyncScopePolicy (void)
-{}
+// Traits specializations for Messaging::SyncScopePolicy.
-Messaging::SyncScopePolicy::~SyncScopePolicy (void)
-{}
+Messaging::SyncScopePolicy_ptr
+TAO::Objref_Traits<Messaging::SyncScopePolicy>::tao_duplicate (
+ Messaging::SyncScopePolicy_ptr p
+ )
+{
+ return Messaging::SyncScopePolicy::_duplicate (p);
+}
void
-Messaging::SyncScopePolicy::_tao_any_destructor (void *_tao_void_pointer)
+TAO::Objref_Traits<Messaging::SyncScopePolicy>::tao_release (
+ Messaging::SyncScopePolicy_ptr p
+ )
{
- SyncScopePolicy *tmp = ACE_static_cast (SyncScopePolicy *, _tao_void_pointer);
- CORBA::release (tmp);
+ CORBA::release (p);
}
Messaging::SyncScopePolicy_ptr
-Messaging::SyncScopePolicy::_narrow (
- CORBA::Object_ptr obj
- ACE_ENV_ARG_DECL
+TAO::Objref_Traits<Messaging::SyncScopePolicy>::tao_nil (void)
+{
+ return Messaging::SyncScopePolicy::_nil ();
+}
+
+CORBA::Boolean
+TAO::Objref_Traits<Messaging::SyncScopePolicy>::tao_marshal (
+ Messaging::SyncScopePolicy_ptr p,
+ TAO_OutputCDR & cdr
)
{
- return SyncScopePolicy::_unchecked_narrow (obj ACE_ENV_ARG_PARAMETER);
+ return p->marshal (cdr);
}
-Messaging::SyncScopePolicy_ptr
-Messaging::SyncScopePolicy::_unchecked_narrow (
+// Function pointer for collocation factory initialization.
+TAO::Collocation_Proxy_Broker *
+(*Messaging__TAO_SyncScopePolicy_Proxy_Broker_Factory_function_pointer) (
CORBA::Object_ptr obj
+ ) = 0;
+
+Messaging::SyncScopePolicy::SyncScopePolicy (void)
+{}
+
+Messaging::SyncScopePolicy::~SyncScopePolicy (void)
+{}
+
+void
+Messaging::SyncScopePolicy::_tao_any_destructor (void *_tao_void_pointer)
+{
+ SyncScopePolicy *_tao_tmp_pointer =
+ ACE_static_cast (SyncScopePolicy *, _tao_void_pointer);
+ CORBA::release (_tao_tmp_pointer);
+}
+
+Messaging::SyncScopePolicy_ptr
+Messaging::SyncScopePolicy::_narrow (
+ CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
- if (CORBA::is_nil (obj))
- {
- return SyncScopePolicy::_nil ();
- }
-
- return
- ACE_reinterpret_cast (
- SyncScopePolicy_ptr,
- obj->_tao_QueryInterface (
- ACE_reinterpret_cast (
- ptrdiff_t,
- &SyncScopePolicy::_tao_class_id
- )
- )
- );
+ SyncScopePolicy_ptr proxy =
+ dynamic_cast<SyncScopePolicy_ptr> (_tao_objref);
+ proxy->_add_ref ();
+ return proxy;
}
Messaging::SyncScopePolicy_ptr
@@ -118,53 +129,41 @@ Messaging::SyncScopePolicy::_duplicate (SyncScopePolicy_ptr obj)
{
obj->_add_ref ();
}
-
+
return obj;
}
-void *Messaging::SyncScopePolicy::_tao_QueryInterface (ptrdiff_t type)
+CORBA::Boolean
+Messaging::SyncScopePolicy::_is_a (
+ const char *value
+ ACE_ENV_ARG_DECL_NOT_USED
+ )
{
- void *retv = 0;
-
- if (type == ACE_reinterpret_cast (
- ptrdiff_t,
- &ACE_NESTED_CLASS (::Messaging, SyncScopePolicy)::_tao_class_id)
- )
- {
- retv = ACE_reinterpret_cast (void*, this);
- }
- else if (type == ACE_reinterpret_cast (
- ptrdiff_t,
- &::CORBA::Policy::_tao_class_id)
- )
- {
- retv =
- ACE_reinterpret_cast (
- void *,
- ACE_static_cast (
- CORBA::Policy_ptr,
- this
- )
- );
- }
- else if (type == ACE_reinterpret_cast (
- ptrdiff_t,
- &CORBA::Object::_tao_class_id)
- )
+ if (
+ !ACE_OS::strcmp (
+ (char *)value,
+ "IDL:omg.org/CORBA/Policy:1.0"
+ ) ||
+ !ACE_OS::strcmp (
+ (char *)value,
+ "IDL:omg.org/Messaging/SyncScopePolicy:1.0"
+ ) ||
+ !ACE_OS::strcmp (
+ (char *)value,
+ "IDL:omg.org/CORBA/LocalObject:1.0"
+ ) ||
+ !ACE_OS::strcmp (
+ (char *)value,
+ "IDL:omg.org/CORBA/Object:1.0"
+ )
+ )
{
- retv =
- ACE_reinterpret_cast (
- void *,
- ACE_static_cast (CORBA::Object_ptr, this)
- );
+ return 1; // success using local knowledge
}
-
- if (retv != 0)
+ else
{
- this->_add_ref ();
+ return 0;
}
-
- return retv;
}
const char* Messaging::SyncScopePolicy::_interface_repository_id (void) const
@@ -179,27 +178,27 @@ Messaging::SyncScopePolicy::marshal (TAO_OutputCDR &)
}
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284
+// be/be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_Messaging_SyncScopePolicy[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
42,
- ACE_NTOHL (0x49444c3a),
- ACE_NTOHL (0x6f6d672e),
- ACE_NTOHL (0x6f72672f),
- ACE_NTOHL (0x4d657373),
- ACE_NTOHL (0x6167696e),
- ACE_NTOHL (0x672f5379),
- ACE_NTOHL (0x6e635363),
- ACE_NTOHL (0x6f706550),
- ACE_NTOHL (0x6f6c6963),
- ACE_NTOHL (0x793a312e),
+ ACE_NTOHL (0x49444c3a),
+ ACE_NTOHL (0x6f6d672e),
+ ACE_NTOHL (0x6f72672f),
+ ACE_NTOHL (0x4d657373),
+ ACE_NTOHL (0x6167696e),
+ ACE_NTOHL (0x672f5379),
+ ACE_NTOHL (0x6e635363),
+ ACE_NTOHL (0x6f706550),
+ ACE_NTOHL (0x6f6c6963),
+ ACE_NTOHL (0x793a312e),
ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/Messaging/SyncScopePolicy:1.0
16,
- ACE_NTOHL (0x53796e63),
- ACE_NTOHL (0x53636f70),
- ACE_NTOHL (0x65506f6c),
+ ACE_NTOHL (0x53796e63),
+ ACE_NTOHL (0x53636f70),
+ ACE_NTOHL (0x65506f6c),
ACE_NTOHL (0x69637900), // name = SyncScopePolicy
};
@@ -211,17 +210,14 @@ static CORBA::TypeCode _tc_TAO_tc_Messaging_SyncScopePolicy (
sizeof (Messaging::SyncScopePolicy)
);
-TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
-TAO_NAMESPACE_BEGIN (Messaging)
-TAO_NAMESPACE_DEFINE (
- ::CORBA::TypeCode_ptr,
- _tc_SyncScopePolicy,
- &_tc_TAO_tc_Messaging_SyncScopePolicy
- )
-TAO_NAMESPACE_END
+namespace Messaging
+{
+ ::CORBA::TypeCode_ptr _tc_SyncScopePolicy =
+ &_tc_TAO_tc_Messaging_SyncScopePolicy;
+}
// TAO_IDL - Generated from
-// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/any_op_cs.cpp:52
+// be/be_visitor_interface/any_op_cs.cpp:50
// Copying insertion.
void
@@ -265,11 +261,100 @@ operator>>= (
);
}
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
- defined (ACE_HAS_GNU_REPO)
-template class TAO_Object_Manager<Messaging::SyncScopePolicy,Messaging::SyncScopePolicy_var,Messaging::tao_SyncScopePolicy_life>;
-template class TAO::Any_Impl_T<Messaging::SyncScopePolicy>;
+ACE_TEMPLATE_SPECIALIZATION
+CORBA::Boolean
+TAO::Any_Impl_T<Messaging::SyncScopePolicy>::to_object (
+ CORBA::Object_ptr &_tao_elem
+ ) const
+{
+ _tao_elem = CORBA::Object::_duplicate (this->value_);
+ return 1;
+}
+
+ACE_TEMPLATE_SPECIALIZATION
+CORBA::Boolean
+TAO::Any_Impl_T<Messaging::SyncScopePolicy>::marshal_value (TAO_OutputCDR &)
+{
+ return 0;
+}
+
+ACE_TEMPLATE_SPECIALIZATION
+CORBA::Boolean
+TAO::Any_Impl_T<Messaging::SyncScopePolicy>::demarshal_value (TAO_InputCDR &)
+{
+ return 0;
+}
+
+// TAO_IDL - Generated from
+// be/be_visitor_root/root.cpp:1703
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
+
+ template class
+ TAO::Any_Basic_Impl_T<
+ CORBA::SetOverrideType
+ >;
+
+ template class
+ TAO::Any_Dual_Impl_T<
+ CORBA::PolicyError
+ >;
+
+ template class
+ TAO::Any_Dual_Impl_T<
+ CORBA::InvalidPolicies
+ >;
+
+ template class
+ TAO_Objref_Var_T<
+ Messaging::SyncScopePolicy,
+ TAO::Objref_Traits<Messaging::SyncScopePolicy>
+ >;
+
+ template class
+ TAO_Objref_Out_T<
+ Messaging::SyncScopePolicy,
+ TAO::Objref_Traits<Messaging::SyncScopePolicy>
+ >;
+
+ template class
+ TAO::Any_Impl_T<
+ Messaging::SyncScopePolicy
+ >;
+
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-# pragma instantiate TAO_Object_Manager<Messaging::SyncScopePolicy, Messaging::SyncScopePolicy_var,Messaging::tao_SyncScopePolicy_life>
-# pragma instantiate TAO::Any_Impl_T<Messaging::SyncScopePolicy>
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
+# pragma instantiate \
+ TAO::Any_Basic_Impl_T< \
+ CORBA::SetOverrideType \
+ >
+
+# pragma instantiate \
+ TAO::Any_Dual_Impl_T< \
+ CORBA::PolicyError \
+ >
+
+# pragma instantiate \
+ TAO::Any_Dual_Impl_T< \
+ CORBA::InvalidPolicies \
+ >
+
+# pragma instantiate \
+ TAO_Objref_Var_T< \
+ Messaging::SyncScopePolicy, \
+ TAO::Objref_Traits<Messaging::SyncScopePolicy> \
+ >
+
+# pragma instantiate \
+ TAO_Objref_Out_T< \
+ Messaging::SyncScopePolicy, \
+ TAO::Objref_Traits<Messaging::SyncScopePolicy> \
+ >
+
+# pragma instantiate \
+ TAO::Any_Impl_T< \
+ Messaging::SyncScopePolicy \
+ >
+
+#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+