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 "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
00042
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
00060
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
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
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
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
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