diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-07-12 10:08:02 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-07-12 10:08:02 +0000 |
commit | 93ba2f5f68e5e15edc17f36d97a791fbe45a7fe0 (patch) | |
tree | 83a73a86dc03e3abd9ba197f95e6a9a6385d192e /TAO/tao/PI/PIForwardRequestA.cpp | |
parent | 44ddcfdb9e69b91fbbd6cad11e9d1bffc75c0196 (diff) | |
download | ATCD-93ba2f5f68e5e15edc17f36d97a791fbe45a7fe0.tar.gz |
ChangeLogTag: Tue Jul 12 10:05:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/PI/PIForwardRequestA.cpp')
-rw-r--r-- | TAO/tao/PI/PIForwardRequestA.cpp | 151 |
1 files changed, 151 insertions, 0 deletions
diff --git a/TAO/tao/PI/PIForwardRequestA.cpp b/TAO/tao/PI/PIForwardRequestA.cpp new file mode 100644 index 00000000000..bd8c5684d25 --- /dev/null +++ b/TAO/tao/PI/PIForwardRequestA.cpp @@ -0,0 +1,151 @@ +// -*- 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 "PIForwardRequestC.h" +#include "tao/Null_RefCount_Policy.h" +#include "tao/TypeCode_Constants.h" +#include "tao/Alias_TypeCode_Static.h" +#include "tao/Struct_TypeCode_Static.h" +#include "tao/TypeCode_Struct_Field.h" +#include "tao/CDR.h" +#include "tao/Any.h" +#include "tao/Any_Dual_Impl_T.h" + +// TAO_IDL - Generated from +// be\be_visitor_typecode/struct_typecode.cpp:87 + +static TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const _tao_fields_PortableInterceptor_ForwardRequest[] = + { + { "forward", &CORBA::_tc_Object } + + }; +static TAO::TypeCode::Struct<char const *, + CORBA::TypeCode_ptr const *, + TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *, + TAO::Null_RefCount_Policy> + _tao_tc_PortableInterceptor_ForwardRequest ( + CORBA::tk_except, + "IDL:omg.org/PortableInterceptor/ForwardRequest:1.0", + "ForwardRequest", + _tao_fields_PortableInterceptor_ForwardRequest, + 1); + +namespace PortableInterceptor +{ + ::CORBA::TypeCode_ptr const _tc_ForwardRequest = + &_tao_tc_PortableInterceptor_ForwardRequest; +} + + + +// TAO_IDL - Generated from +// be\be_visitor_exception/any_op_cs.cpp:50 + +namespace TAO +{ + template<> + CORBA::Boolean + Any_Dual_Impl_T<PortableInterceptor::ForwardRequest>::demarshal_value ( + TAO_InputCDR & cdr + ) + { + CORBA::String_var id; + + if (!(cdr >> id.out ())) + { + return false; + } + + ACE_TRY_NEW_ENV + { + this->value_->_tao_decode (cdr ACE_ENV_ARG_PARAMETER); + ACE_TRY_CHECK; + } + ACE_CATCHANY + { + return false; + } + ACE_ENDTRY; + + return true; + } +} + +// Copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + const PortableInterceptor::ForwardRequest &_tao_elem + ) +{ + TAO::Any_Dual_Impl_T<PortableInterceptor::ForwardRequest>::insert_copy ( + _tao_any, + PortableInterceptor::ForwardRequest::_tao_any_destructor, + PortableInterceptor::_tc_ForwardRequest, + _tao_elem + ); +} + +// Non-copying insertion. +void operator<<= ( + CORBA::Any &_tao_any, + PortableInterceptor::ForwardRequest *_tao_elem + ) +{ + TAO::Any_Dual_Impl_T<PortableInterceptor::ForwardRequest>::insert ( + _tao_any, + PortableInterceptor::ForwardRequest::_tao_any_destructor, + PortableInterceptor::_tc_ForwardRequest, + _tao_elem + ); +} + +// Extraction to non-const pointer (deprecated). +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + PortableInterceptor::ForwardRequest *&_tao_elem + ) +{ + return _tao_any >>= const_cast< + const PortableInterceptor::ForwardRequest *&> ( + _tao_elem + ); +} + +// Extraction to const pointer. +CORBA::Boolean operator>>= ( + const CORBA::Any &_tao_any, + const PortableInterceptor::ForwardRequest *&_tao_elem + ) +{ + return + TAO::Any_Dual_Impl_T<PortableInterceptor::ForwardRequest>::extract ( + _tao_any, + PortableInterceptor::ForwardRequest::_tao_any_destructor, + PortableInterceptor::_tc_ForwardRequest, + _tao_elem + ); +} |