RT_ProtocolPropertiesA.cpp

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // $Id: RT_ProtocolPropertiesA.cpp 78838 2007-07-10 15:57:39Z 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 "RT_ProtocolPropertiesA.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/Objref_TypeCode_Static.h"
00033 #include "tao/CDR.h"
00034 #include "tao/AnyTypeCode/Any.h"
00035 #include "tao/AnyTypeCode/Any_Impl_T.h"
00036 
00037 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00038 
00039 
00040 
00041 // TAO_IDL - Generated from
00042 // be\be_visitor_typecode/objref_typecode.cpp:76
00043 
00044 static TAO::TypeCode::Objref<char const *,
00045                              TAO::Null_RefCount_Policy>
00046   _tao_tc_RTCORBA_ProtocolProperties (
00047     ::CORBA::tk_local_interface,
00048     "IDL:omg.org/RTCORBA/ProtocolProperties:1.0",
00049     "ProtocolProperties");
00050   
00051 namespace RTCORBA
00052 {
00053   ::CORBA::TypeCode_ptr const _tc_ProtocolProperties =
00054     &_tao_tc_RTCORBA_ProtocolProperties;
00055 }
00056 
00057 
00058 
00059 // TAO_IDL - Generated from
00060 // be\be_visitor_interface/any_op_cs.cpp:51
00061 
00062 TAO_END_VERSIONED_NAMESPACE_DECL
00063 
00064 
00065 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00066 
00067 
00068 
00069 namespace TAO
00070 {
00071   template<>
00072   ::CORBA::Boolean
00073   Any_Impl_T<RTCORBA::ProtocolProperties>::to_object (
00074       ::CORBA::Object_ptr &_tao_elem
00075     ) const
00076   {
00077     _tao_elem = ::CORBA::Object::_duplicate (this->value_);
00078     return true;
00079   }
00080 }
00081 
00082 namespace TAO
00083 {
00084   template<>
00085   ::CORBA::Boolean
00086   Any_Impl_T<RTCORBA::ProtocolProperties>::marshal_value (TAO_OutputCDR &)
00087   {
00088     return false;
00089   }
00090   
00091   template<>
00092   ::CORBA::Boolean
00093   Any_Impl_T<RTCORBA::ProtocolProperties>::demarshal_value (TAO_InputCDR &)
00094   {
00095     return false;
00096   }
00097 }
00098 TAO_END_VERSIONED_NAMESPACE_DECL
00099 
00100 
00101 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00102 
00103 
00104 
00105 
00106 #if defined (ACE_ANY_OPS_USE_NAMESPACE)
00107 
00108 namespace RTCORBA
00109 {
00110   
00111   
00112   /// Copying insertion.
00113   void
00114   operator<<= (
00115       ::CORBA::Any &_tao_any,
00116       ProtocolProperties_ptr _tao_elem)
00117   {
00118     ProtocolProperties_ptr _tao_objptr =
00119       ProtocolProperties::_duplicate (_tao_elem);
00120     _tao_any <<= &_tao_objptr;
00121   }
00122   
00123   /// Non-copying insertion.
00124   void
00125   operator<<= (
00126       ::CORBA::Any &_tao_any,
00127       ProtocolProperties_ptr *_tao_elem)
00128   {
00129     TAO::Any_Impl_T<ProtocolProperties>::insert (
00130         _tao_any,
00131         ProtocolProperties::_tao_any_destructor,
00132         _tc_ProtocolProperties,
00133         *_tao_elem)
00134   }
00135   
00136   ::CORBA::Boolean
00137   operator>>= (
00138       const ::CORBA::Any &_tao_any,
00139       ProtocolProperties_ptr &_tao_elem)
00140   {
00141     return
00142       TAO::Any_Impl_T<ProtocolProperties>::extract (
00143           _tao_any,
00144           ProtocolProperties::_tao_any_destructor,
00145           _tc_ProtocolProperties,
00146           _tao_elem)
00147   }
00148 }
00149 
00150 #else
00151 
00152 
00153 TAO_END_VERSIONED_NAMESPACE_DECL
00154 
00155 
00156 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00157 
00158 
00159 
00160 /// Copying insertion.
00161 void
00162 operator<<= (
00163     ::CORBA::Any &_tao_any,
00164     RTCORBA::ProtocolProperties_ptr _tao_elem)
00165 {
00166   RTCORBA::ProtocolProperties_ptr _tao_objptr =
00167     RTCORBA::ProtocolProperties::_duplicate (_tao_elem);
00168   _tao_any <<= &_tao_objptr;
00169 }
00170 
00171 /// Non-copying insertion.
00172 void
00173 operator<<= (
00174     ::CORBA::Any &_tao_any,
00175     RTCORBA::ProtocolProperties_ptr *_tao_elem)
00176 {
00177   TAO::Any_Impl_T<RTCORBA::ProtocolProperties>::insert (
00178       _tao_any,
00179       RTCORBA::ProtocolProperties::_tao_any_destructor,
00180       RTCORBA::_tc_ProtocolProperties,
00181       *_tao_elem);
00182 }
00183 
00184 ::CORBA::Boolean
00185 operator>>= (
00186     const ::CORBA::Any &_tao_any,
00187     RTCORBA::ProtocolProperties_ptr &_tao_elem)
00188 {
00189   return
00190     TAO::Any_Impl_T<RTCORBA::ProtocolProperties>::extract (
00191         _tao_any,
00192         RTCORBA::ProtocolProperties::_tao_any_destructor,
00193         RTCORBA::_tc_ProtocolProperties,
00194         _tao_elem);
00195 }
00196 
00197 TAO_END_VERSIONED_NAMESPACE_DECL
00198 
00199 
00200 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00201 
00202 
00203 
00204 
00205 #endif
00206 
00207 TAO_END_VERSIONED_NAMESPACE_DECL
00208 
00209 

Generated on Tue Feb 2 17:42:49 2010 for TAO_RTCORBA by  doxygen 1.4.7