RTPortableServerA.cpp

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // RTPortableServerA.cpp,v 1.18 2006/03/10 07:19:16 jtc Exp
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/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 // TAO_IDL - Generated from
00041 // be/be_visitor_typecode/objref_typecode.cpp:76
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 // TAO_IDL - Generated from
00059 // be/be_visitor_interface/any_op_cs.cpp:50
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 // Copying insertion.
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 // Non-copying insertion.
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

Generated on Thu Nov 9 12:55:46 2006 for TAO_RTPortableServer by doxygen 1.3.6