Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / AnyTypeCode / WrongTransactionA.cpp
blobffe6064f675238297e2a41eb7741f0b49bae830a
1 // -*- C++ -*-
2 // **** Code generated by the The ACE ORB (TAO) IDL Compiler ****
3 // TAO and the TAO IDL Compiler have been developed by:
4 // Center for Distributed Object Computing
5 // Washington University
6 // St. Louis, MO
7 // USA
8 // http://www.cs.wustl.edu/~schmidt/doc-center.html
9 // and
10 // Distributed Object Computing Laboratory
11 // University of California at Irvine
12 // Irvine, CA
13 // USA
14 // http://doc.ece.uci.edu/
15 // and
16 // Institute for Software Integrated Systems
17 // Vanderbilt University
18 // Nashville, TN
19 // USA
20 // http://www.isis.vanderbilt.edu/
22 // Information about TAO is available at:
23 // http://www.dre.vanderbilt.edu/~schmidt/TAO.html
25 #include "tao/AnyTypeCode/WrongTransactionA.h"
26 #include "tao/AnyTypeCode/Null_RefCount_Policy.h"
27 #include "tao/AnyTypeCode/TypeCode_Constants.h"
28 #include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
29 #include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
30 #include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
31 #include "tao/CDR.h"
32 #include "tao/AnyTypeCode/Any.h"
33 #include "tao/AnyTypeCode/Any_Dual_Impl_T.h"
35 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
37 // TAO_IDL - Generated from
38 // be\be_visitor_typecode/struct_typecode.cpp:87
40 static TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const * const _tao_fields_CORBA_WrongTransaction = 0;
41 static TAO::TypeCode::Struct<char const *,
42 CORBA::TypeCode_ptr const *,
43 TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const *,
44 TAO::Null_RefCount_Policy>
45 _tao_tc_CORBA_WrongTransaction (
46 CORBA::tk_except,
47 "IDL:omg.org/CORBA/WrongTransaction:1.0",
48 "WrongTransaction",
49 _tao_fields_CORBA_WrongTransaction,
50 0);
52 namespace CORBA
54 ::CORBA::TypeCode_ptr const _tc_WrongTransaction =
55 &_tao_tc_CORBA_WrongTransaction;
59 // TAO_IDL - Generated from
60 // be\be_visitor_exception/any_op_cs.cpp:50
62 namespace TAO
64 template<>
65 CORBA::Boolean
66 Any_Dual_Impl_T<CORBA::WrongTransaction>::demarshal_value (
67 TAO_InputCDR & cdr)
69 CORBA::String_var id;
71 if (!(cdr >> id.out ()))
73 return false;
76 try
78 this->value_->_tao_decode (cdr);
80 catch (const ::CORBA::Exception&)
82 return false;
85 return true;
89 namespace CORBA
91 // Copying insertion.
92 void operator<<= (
93 CORBA::Any &_tao_any,
94 const CORBA::WrongTransaction &_tao_elem)
96 TAO::Any_Dual_Impl_T<CORBA::WrongTransaction>::insert_copy (
97 _tao_any,
98 CORBA::WrongTransaction::_tao_any_destructor,
99 CORBA::_tc_WrongTransaction,
100 _tao_elem);
103 // Non-copying insertion.
104 void operator<<= (
105 CORBA::Any &_tao_any,
106 CORBA::WrongTransaction *_tao_elem
109 TAO::Any_Dual_Impl_T<CORBA::WrongTransaction>::insert (
110 _tao_any,
111 CORBA::WrongTransaction::_tao_any_destructor,
112 CORBA::_tc_WrongTransaction,
113 _tao_elem);
116 // Extraction to non-const pointer (deprecated).
117 CORBA::Boolean operator>>= (
118 const CORBA::Any &_tao_any,
119 CORBA::WrongTransaction *&_tao_elem)
121 return _tao_any >>= const_cast<
122 const CORBA::WrongTransaction *&> (
123 _tao_elem
127 // Extraction to const pointer.
128 CORBA::Boolean operator>>= (
129 const CORBA::Any &_tao_any,
130 const CORBA::WrongTransaction *&_tao_elem)
132 return
133 TAO::Any_Dual_Impl_T<CORBA::WrongTransaction>::extract (
134 _tao_any,
135 CORBA::WrongTransaction::_tao_any_destructor,
136 CORBA::_tc_WrongTransaction,
137 _tao_elem);
142 TAO_END_VERSIONED_NAMESPACE_DECL