WrongTransactionA.cpp

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // $Id: WrongTransactionA.cpp 76687 2007-01-29 19:18:13Z johnnyw $
00004 
00005 // ****  Code generated by the The ACE ORB (TAO) IDL Compiler ****
00006 // TAO and the TAO IDL Compiler have been developed by:
00007 //       Center for Distributed Object Computing
00008 //       Washington University
00009 //       St. Louis, MO
00010 //       USA
00011 //       http://www.cs.wustl.edu/~schmidt/doc-center.html
00012 // and
00013 //       Distributed Object Computing Laboratory
00014 //       University of California at Irvine
00015 //       Irvine, CA
00016 //       USA
00017 //       http://doc.ece.uci.edu/
00018 // and
00019 //       Institute for Software Integrated Systems
00020 //       Vanderbilt University
00021 //       Nashville, TN
00022 //       USA
00023 //       http://www.isis.vanderbilt.edu/
00024 //
00025 // Information about TAO is available at:
00026 //     http://www.cs.wustl.edu/~schmidt/TAO.html
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 // TAO_IDL - Generated from
00041 // be\be_visitor_typecode/struct_typecode.cpp:87
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 // TAO_IDL - Generated from
00064 // be\be_visitor_exception/any_op_cs.cpp:50
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 // Copying insertion.
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 // Non-copying insertion.
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 // Extraction to non-const pointer (deprecated).
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 // Extraction to const pointer.
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

Generated on Sun Jan 27 13:21:07 2008 for TAO_AnyTypeCode by doxygen 1.3.6