diff options
Diffstat (limited to 'TAO/tao/PortableServer/ForwardRequestC.cpp')
-rw-r--r-- | TAO/tao/PortableServer/ForwardRequestC.cpp | 285 |
1 files changed, 285 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/ForwardRequestC.cpp b/TAO/tao/PortableServer/ForwardRequestC.cpp new file mode 100644 index 00000000000..5fa76eb34a7 --- /dev/null +++ b/TAO/tao/PortableServer/ForwardRequestC.cpp @@ -0,0 +1,285 @@ +// -*- 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 + +// TAO_IDL - Generated from +// be\be_codegen.cpp:302 + + +#include "ForwardRequestC.h" +#include "tao/CDR.h" +#include "tao/Typecode.h" +#include "tao/SystemException.h" +#include "ace/OS_NS_string.h" + +#if defined (__BORLANDC__) +#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig +#endif /* __BORLANDC__ */ + +#if !defined (__ACE_INLINE__) +#include "ForwardRequestC.inl" +#endif /* !defined INLINE */ + +#if (TAO_HAS_MINIMUM_POA == 0) + +// TAO_IDL - Generated from +// be\be_visitor_arg_traits.cpp:66 + +// Arg traits specializations. +namespace TAO +{ +} + + +// TAO_IDL - Generated from +// be\be_visitor_exception/exception_cs.cpp:63 + +PortableServer::ForwardRequest::ForwardRequest (void) + : CORBA::UserException ( + "IDL:omg.org/PortableServer/ForwardRequest:2.3", + "ForwardRequest" + ) +{ +} + +PortableServer::ForwardRequest::~ForwardRequest (void) +{ +} + +PortableServer::ForwardRequest::ForwardRequest (const ::PortableServer::ForwardRequest &_tao_excp) + : CORBA::UserException ( + _tao_excp._rep_id (), + _tao_excp._name () + ) +{ + this->forward_reference = CORBA::Object::_duplicate (_tao_excp.forward_reference.in ()); +} + +PortableServer::ForwardRequest& +PortableServer::ForwardRequest::operator= (const ::PortableServer::ForwardRequest &_tao_excp) +{ + this->ACE_NESTED_CLASS (CORBA, UserException)::operator= (_tao_excp); + this->forward_reference = CORBA::Object::_duplicate (_tao_excp.forward_reference.in ()); + return *this; +} + +void PortableServer::ForwardRequest::_tao_any_destructor (void *_tao_void_pointer) +{ + ForwardRequest *_tao_tmp_pointer = + static_cast<ForwardRequest *> (_tao_void_pointer); + delete _tao_tmp_pointer; +} + +PortableServer::ForwardRequest * +PortableServer::ForwardRequest::_downcast (CORBA::Exception *_tao_excp) +{ + return dynamic_cast<ForwardRequest *> (_tao_excp); +} + +const PortableServer::ForwardRequest * +PortableServer::ForwardRequest::_downcast (CORBA::Exception const *_tao_excp) +{ + return dynamic_cast<const ForwardRequest *> (_tao_excp); +} + +CORBA::Exception *PortableServer::ForwardRequest::_alloc (void) +{ + CORBA::Exception *retval = 0; + ACE_NEW_RETURN (retval, ::PortableServer::ForwardRequest, 0); + return retval; +} + +CORBA::Exception * +PortableServer::ForwardRequest::_tao_duplicate (void) const +{ + CORBA::Exception *result; + ACE_NEW_RETURN ( + result, + ::PortableServer::ForwardRequest (*this), + 0 + ); + return result; +} + +void PortableServer::ForwardRequest::_raise (void) const +{ + TAO_RAISE (*this); +} + +void PortableServer::ForwardRequest::_tao_encode ( + TAO_OutputCDR &cdr + ACE_ENV_ARG_DECL + ) const +{ + if (cdr << *this) + { + return; + } + + ACE_THROW (CORBA::MARSHAL ()); +} + +void PortableServer::ForwardRequest::_tao_decode ( + TAO_InputCDR &cdr + ACE_ENV_ARG_DECL + ) +{ + if (cdr >> *this) + { + return; + } + + ACE_THROW (CORBA::MARSHAL ()); +} + + + +// TAO_IDL - Generated from +// be\be_visitor_exception/exception_ctor.cpp:66 + +PortableServer::ForwardRequest::ForwardRequest ( + const CORBA::Object_ptr _tao_forward_reference + ) + : CORBA::UserException ( + "IDL:omg.org/PortableServer/ForwardRequest:2.3", + "ForwardRequest" + ) +{ + this->forward_reference = CORBA::Object::_duplicate (_tao_forward_reference); +} + +// TAO extension - the virtual _type method. +CORBA::TypeCode_ptr PortableServer::ForwardRequest::_type (void) const +{ + return ::PortableServer::_tc_ForwardRequest; +} + +// TAO_IDL - Generated from +// be\be_visitor_typecode/typecode_defn.cpp:295 + +static const CORBA::Long _oc_PortableServer_ForwardRequest[] = +{ + TAO_ENCAP_BYTE_ORDER, // byte order + 46, + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x506f7274), + ACE_NTOHL (0x61626c65), + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x65722f46), + ACE_NTOHL (0x6f727761), + ACE_NTOHL (0x72645265), + ACE_NTOHL (0x71756573), + ACE_NTOHL (0x743a322e), + ACE_NTOHL (0x33000000), // repository ID = IDL:omg.org/PortableServer/ForwardRequest:2.3 + 15, + ACE_NTOHL (0x466f7277), + ACE_NTOHL (0x61726452), + ACE_NTOHL (0x65717565), + ACE_NTOHL (0x73740000), // name = ForwardRequest + 1, // member count + 18, + ACE_NTOHL (0x666f7277), + ACE_NTOHL (0x6172645f), + ACE_NTOHL (0x72656665), + ACE_NTOHL (0x72656e63), + ACE_NTOHL (0x65000000), // name = forward_reference + CORBA::tk_objref, + 52, // encapsulation length + TAO_ENCAP_BYTE_ORDER, // byte order + 29, + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x6f6d672e), + ACE_NTOHL (0x6f72672f), + ACE_NTOHL (0x434f5242), + ACE_NTOHL (0x412f4f62), + ACE_NTOHL (0x6a656374), + ACE_NTOHL (0x3a312e30), + ACE_NTOHL (0x0), // repository ID = IDL:omg.org/CORBA/Object:1.0 + 7, + ACE_NTOHL (0x4f626a65), + ACE_NTOHL (0x63740000), // name = Object + +}; + +static CORBA::TypeCode _tc_TAO_tc_PortableServer_ForwardRequest ( + CORBA::tk_except, + sizeof (_oc_PortableServer_ForwardRequest), + (char *) &_oc_PortableServer_ForwardRequest, + 0, + 0 + ); + +namespace PortableServer +{ + ::CORBA::TypeCode_ptr _tc_ForwardRequest = + &_tc_TAO_tc_PortableServer_ForwardRequest; +} + +// TAO_IDL - Generated from +// be\be_visitor_exception/cdr_op_cs.cpp:60 + +CORBA::Boolean operator<< ( + TAO_OutputCDR &strm, + const PortableServer::ForwardRequest &_tao_aggregate + ) +{ + // First marshal the repository ID. + if (strm << _tao_aggregate._rep_id ()) + { + // Now marshal the members (if any). + return ( + (strm << _tao_aggregate.forward_reference.in ()) + ); + } + else + { + return false; + } +} + +CORBA::Boolean operator>> ( + TAO_InputCDR &strm, + PortableServer::ForwardRequest &_tao_aggregate + ) +{ + // Demarshal the members. + return ( + (strm >> _tao_aggregate.forward_reference.out ()) + ); +} + +// TAO_IDL - Generated from +// be\be_visitor_root/root.cpp:1629 + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + +#endif /* TAO_HAS_MINIMUM_CORBA == 0 */ |