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/Null_RefCount_Policy.h"
00029 #include "tao/AnyTypeCode/TypeCode_Constants.h"
00030 #include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
00031 #include "tao/AnyTypeCode/Objref_TypeCode_Static.h"
00032 #include "tao/AnyTypeCode/String_TypeCode_Static.h"
00033 #include "tao/RTPortableServer/RTPortableServer.h"
00034 #include "tao/CDR.h"
00035 #include "tao/AnyTypeCode/Any.h"
00036 #include "tao/AnyTypeCode/Any_Impl_T.h"
00037
00038 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00039
00040
00041
00042
00043 static TAO::TypeCode::Objref<char const *,
00044 TAO::Null_RefCount_Policy>
00045 _tao_tc_RTPortableServer_POA (
00046 CORBA::tk_local_interface,
00047 "IDL:omg.org/RTPortableServer/POA:1.0",
00048 "POA");
00049
00050 namespace RTPortableServer
00051 {
00052 ::CORBA::TypeCode_ptr const _tc_POA =
00053 &_tao_tc_RTPortableServer_POA;
00054 }
00055
00056
00057
00058
00059
00060
00061 namespace TAO
00062 {
00063 template<>
00064 CORBA::Boolean
00065 Any_Impl_T<RTPortableServer::POA>::to_object (
00066 CORBA::Object_ptr &_tao_elem
00067 ) const
00068 {
00069 _tao_elem = CORBA::Object::_duplicate (this->value_);
00070 return true;
00071 }
00072 }
00073
00074 namespace TAO
00075 {
00076 template<>
00077 CORBA::Boolean
00078 Any_Impl_T<RTPortableServer::POA>::marshal_value (TAO_OutputCDR &)
00079 {
00080 return false;
00081 }
00082
00083 template<>
00084 CORBA::Boolean
00085 Any_Impl_T<RTPortableServer::POA>::demarshal_value (TAO_InputCDR &)
00086 {
00087 return false;
00088 }
00089 }
00090
00091
00092 void
00093 operator<<= (
00094 CORBA::Any &_tao_any,
00095 RTPortableServer::POA_ptr _tao_elem
00096 )
00097 {
00098 RTPortableServer::POA_ptr _tao_objptr =
00099 RTPortableServer::POA::_duplicate (_tao_elem);
00100 _tao_any <<= &_tao_objptr;
00101 }
00102
00103
00104 void
00105 operator<<= (
00106 CORBA::Any &_tao_any,
00107 RTPortableServer::POA_ptr *_tao_elem
00108 )
00109 {
00110 TAO::Any_Impl_T<RTPortableServer::POA>::insert (
00111 _tao_any,
00112 RTPortableServer::POA::_tao_any_destructor,
00113 RTPortableServer::_tc_POA,
00114 *_tao_elem
00115 );
00116 }
00117
00118 CORBA::Boolean
00119 operator>>= (
00120 const CORBA::Any &_tao_any,
00121 RTPortableServer::POA_ptr &_tao_elem
00122 )
00123 {
00124 return
00125 TAO::Any_Impl_T<RTPortableServer::POA>::extract (
00126 _tao_any,
00127 RTPortableServer::POA::_tao_any_destructor,
00128 RTPortableServer::_tc_POA,
00129 _tao_elem
00130 );
00131 }
00132
00133 TAO_END_VERSIONED_NAMESPACE_DECL