Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #include "tao/AnyTypeCode/WrongTransactionA.h"
00029 #include "tao/AnyTypeCode/Null_RefCount_Policy.h"
00030 #include "tao/AnyTypeCode/TypeCode_Constants.h"
00031 #include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
00032 #include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
00033 #include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
00034 #include "tao/CDR.h"
00035 #include "tao/AnyTypeCode/Any.h"
00036 #include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
00037
00038 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00039
00040
00041
00042
00043 static TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const * const _tao_fields_CORBA_WrongTransaction = 0;
00044 static TAO::TypeCode::Struct<char const *,
00045 CORBA::TypeCode_ptr const *,
00046 TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *,
00047 TAO::Null_RefCount_Policy>
00048 _tao_tc_CORBA_WrongTransaction (
00049 CORBA::tk_except,
00050 "IDL:omg.org/CORBA/WrongTransaction:1.0",
00051 "WrongTransaction",
00052 _tao_fields_CORBA_WrongTransaction,
00053 0);
00054
00055 namespace CORBA
00056 {
00057 ::CORBA::TypeCode_ptr const _tc_WrongTransaction =
00058 &_tao_tc_CORBA_WrongTransaction;
00059 }
00060
00061
00062
00063
00064
00065
00066 namespace TAO
00067 {
00068 template<>
00069 CORBA::Boolean
00070 Any_Dual_Impl_T<CORBA::WrongTransaction>::demarshal_value (
00071 TAO_InputCDR & cdr
00072 )
00073 {
00074 CORBA::String_var id;
00075
00076 if (!(cdr >> id.out ()))
00077 {
00078 return false;
00079 }
00080
00081 try
00082 {
00083 this->value_->_tao_decode (cdr);
00084 }
00085 catch (const ::CORBA::Exception&)
00086 {
00087 return false;
00088 }
00089
00090 return true;
00091 }
00092 }
00093
00094
00095 void operator<<= (
00096 CORBA::Any &_tao_any,
00097 const CORBA::WrongTransaction &_tao_elem
00098 )
00099 {
00100 TAO::Any_Dual_Impl_T<CORBA::WrongTransaction>::insert_copy (
00101 _tao_any,
00102 CORBA::WrongTransaction::_tao_any_destructor,
00103 CORBA::_tc_WrongTransaction,
00104 _tao_elem
00105 );
00106 }
00107
00108
00109 void operator<<= (
00110 CORBA::Any &_tao_any,
00111 CORBA::WrongTransaction *_tao_elem
00112 )
00113 {
00114 TAO::Any_Dual_Impl_T<CORBA::WrongTransaction>::insert (
00115 _tao_any,
00116 CORBA::WrongTransaction::_tao_any_destructor,
00117 CORBA::_tc_WrongTransaction,
00118 _tao_elem
00119 );
00120 }
00121
00122
00123 CORBA::Boolean operator>>= (
00124 const CORBA::Any &_tao_any,
00125 CORBA::WrongTransaction *&_tao_elem
00126 )
00127 {
00128 return _tao_any >>= const_cast<
00129 const CORBA::WrongTransaction *&> (
00130 _tao_elem
00131 );
00132 }
00133
00134
00135 CORBA::Boolean operator>>= (
00136 const CORBA::Any &_tao_any,
00137 const CORBA::WrongTransaction *&_tao_elem
00138 )
00139 {
00140 return
00141 TAO::Any_Dual_Impl_T<CORBA::WrongTransaction>::extract (
00142 _tao_any,
00143 CORBA::WrongTransaction::_tao_any_destructor,
00144 CORBA::_tc_WrongTransaction,
00145 _tao_elem
00146 );
00147 }
00148
00149 TAO_END_VERSIONED_NAMESPACE_DECL