diff options
Diffstat (limited to 'TAO/tao/RTPortableServer/RTPortableServerA.cpp')
-rw-r--r-- | TAO/tao/RTPortableServer/RTPortableServerA.cpp | 153 |
1 files changed, 153 insertions, 0 deletions
diff --git a/TAO/tao/RTPortableServer/RTPortableServerA.cpp b/TAO/tao/RTPortableServer/RTPortableServerA.cpp new file mode 100644 index 00000000000..7493e734f62 --- /dev/null +++ b/TAO/tao/RTPortableServer/RTPortableServerA.cpp @@ -0,0 +1,153 @@ +// -*- 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 "RTPortableServerC.h" +#include "RTPortableServerA.h" +#include "tao/Typecode.h" +#include "tao/Any_Impl_T.h" + +// TAO_IDL - Generated from +// be/be_visitor_interface/any_op_cs.cpp:50 +// TAO_IDL - Generated from +// be/be_visitor_typecode/typecode_defn.cpp:284 + +static const CORBA::Long _oc_RTPortableServer_POA[] = +{ + TAO_ENCAP_BYTE_ORDER, // byte order + 37, + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x5254506f), + ACE_NTOHL (0x72746162), + ACE_NTOHL (0x6c655365), + ACE_NTOHL (0x72766572), + ACE_NTOHL (0x2f504f41), + ACE_NTOHL (0x3a312e30), + ACE_NTOHL (0x0), // repository ID = IDL:omg.org/RTPortableServer/POA:1.0 + 4, + ACE_NTOHL (0x504f4100), // name = POA + }; + +static CORBA::TypeCode _tc_TAO_tc_RTPortableServer_POA ( + CORBA::tk_objref, + sizeof (_oc_RTPortableServer_POA), + (char *) &_oc_RTPortableServer_POA, + 0, + sizeof (RTPortableServer::POA) + ); + +namespace RTPortableServer +{ + ::CORBA::TypeCode_ptr _tc_POA = + &_tc_TAO_tc_RTPortableServer_POA; +} + + +ACE_TEMPLATE_SPECIALIZATION +CORBA::Boolean +TAO::Any_Impl_T<RTPortableServer::POA>::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<RTPortableServer::POA>::marshal_value (TAO_OutputCDR &) +{ + return 0; +} + +ACE_TEMPLATE_SPECIALIZATION +CORBA::Boolean +TAO::Any_Impl_T<RTPortableServer::POA>::demarshal_value (TAO_InputCDR &) +{ + return 0; +} + +// Copying insertion. +void +operator<<= ( + CORBA::Any &_tao_any, + RTPortableServer::POA_ptr _tao_elem + ) +{ + RTPortableServer::POA_ptr _tao_objptr = + RTPortableServer::POA::_duplicate (_tao_elem); + _tao_any <<= &_tao_objptr; +} + +// Non-copying insertion. +void +operator<<= ( + CORBA::Any &_tao_any, + RTPortableServer::POA_ptr *_tao_elem + ) +{ + TAO::Any_Impl_T<RTPortableServer::POA>::insert ( + _tao_any, + RTPortableServer::POA::_tao_any_destructor, + RTPortableServer::_tc_POA, + *_tao_elem + ); +} + +CORBA::Boolean +operator>>= ( + const CORBA::Any &_tao_any, + RTPortableServer::POA_ptr &_tao_elem + ) +{ + return + TAO::Any_Impl_T<RTPortableServer::POA>::extract ( + _tao_any, + RTPortableServer::POA::_tao_any_destructor, + RTPortableServer::_tc_POA, + _tao_elem + ); +} + + + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + + template class + TAO::Any_Impl_T< + RTPortableServer::POA + >; + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +# pragma instantiate \ + TAO::Any_Impl_T< \ + RTPortableServer::POA \ + > + +#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ |