diff options
Diffstat (limited to 'TAO/tao/Messaging/Messaging_SyncScope_PolicyA.cpp')
-rw-r--r-- | TAO/tao/Messaging/Messaging_SyncScope_PolicyA.cpp | 156 |
1 files changed, 156 insertions, 0 deletions
diff --git a/TAO/tao/Messaging/Messaging_SyncScope_PolicyA.cpp b/TAO/tao/Messaging/Messaging_SyncScope_PolicyA.cpp new file mode 100644 index 00000000000..5674bd499d7 --- /dev/null +++ b/TAO/tao/Messaging/Messaging_SyncScope_PolicyA.cpp @@ -0,0 +1,156 @@ +// -*- C++ -*- +// +// $Id$ + +// **** Code generated by the The ACE ORB (TAO) IDL Compiler **** +// TAO and the TAO IDL Compiler have been developed by: +// Center for Distributed Object Computing +// Washington University +// St. Louis, MO +// USA +// http://www.cs.wustl.edu/~schmidt/doc-center.html +// and +// Distributed Object Computing Laboratory +// University of California at Irvine +// 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 + +#include "Messaging_SyncScope_PolicyC.h" +#include "tao/Typecode.h" +#include "tao/CDR.h" +#include "tao/Any.h" +#include "tao/Any_Impl_T.h" + +// TAO_IDL - Generated from +// be\be_visitor_typecode/typecode_defn.cpp:295 + +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 (0x30000000), // repository ID = IDL:omg.org/Messaging/SyncScopePolicy:1.0 + 16, + ACE_NTOHL (0x53796e63), + ACE_NTOHL (0x53636f70), + ACE_NTOHL (0x65506f6c), + ACE_NTOHL (0x69637900), // name = SyncScopePolicy + }; + +static CORBA::TypeCode _tc_TAO_tc_Messaging_SyncScopePolicy ( + CORBA::tk_objref, + sizeof (_oc_Messaging_SyncScopePolicy), + (char *) &_oc_Messaging_SyncScopePolicy, + 0, + 0 + ); + +namespace Messaging +{ + ::CORBA::TypeCode_ptr _tc_SyncScopePolicy = + &_tc_TAO_tc_Messaging_SyncScopePolicy; +} + +// TAO_IDL - Generated from +// be\be_visitor_interface/any_op_cs.cpp:50 + +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 false; +} + +ACE_TEMPLATE_SPECIALIZATION +CORBA::Boolean +TAO::Any_Impl_T<Messaging::SyncScopePolicy>::demarshal_value (TAO_InputCDR &) +{ + return false; +} + +// Copying insertion. +void +operator<<= ( + CORBA::Any &_tao_any, + Messaging::SyncScopePolicy_ptr _tao_elem + ) +{ + Messaging::SyncScopePolicy_ptr _tao_objptr = + Messaging::SyncScopePolicy::_duplicate (_tao_elem); + _tao_any <<= &_tao_objptr; +} + +// Non-copying insertion. +void +operator<<= ( + CORBA::Any &_tao_any, + Messaging::SyncScopePolicy_ptr *_tao_elem + ) +{ + TAO::Any_Impl_T<Messaging::SyncScopePolicy>::insert ( + _tao_any, + Messaging::SyncScopePolicy::_tao_any_destructor, + Messaging::_tc_SyncScopePolicy, + *_tao_elem + ); +} + +CORBA::Boolean +operator>>= ( + const CORBA::Any &_tao_any, + Messaging::SyncScopePolicy_ptr &_tao_elem + ) +{ + return + TAO::Any_Impl_T<Messaging::SyncScopePolicy>::extract ( + _tao_any, + Messaging::SyncScopePolicy::_tao_any_destructor, + Messaging::_tc_SyncScopePolicy, + _tao_elem + ); +} + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + + template class + TAO::Any_Impl_T< + Messaging::SyncScopePolicy + >; + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +# pragma instantiate \ + TAO::Any_Impl_T< \ + Messaging::SyncScopePolicy \ + > + +#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ |