RT_ProtocolPropertiesC.cpp

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // $Id: RT_ProtocolPropertiesC.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 // TAO_IDL - Generated from
00029 // be\be_codegen.cpp:371
00030 
00031 
00032 #include "tao/RTCORBA/RTCORBA.h"
00033 #include "tao/CDR.h"
00034 #include "ace/OS_NS_string.h"
00035 
00036 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00037 
00038 
00039 
00040 // TAO_IDL - Generated from
00041 // be\be_visitor_arg_traits.cpp:72
00042 
00043 
00044 TAO_END_VERSIONED_NAMESPACE_DECL
00045 
00046 
00047 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00048 
00049 
00050 // Arg traits specializations.
00051 namespace TAO
00052 {
00053 }
00054 
00055 TAO_END_VERSIONED_NAMESPACE_DECL
00056 
00057 
00058 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00059 
00060 
00061 
00062 
00063 // TAO_IDL - Generated from
00064 // be\be_visitor_interface/interface_cs.cpp:60
00065 
00066 // Traits specializations for RTCORBA::ProtocolProperties.
00067 
00068 RTCORBA::ProtocolProperties_ptr
00069 TAO::Objref_Traits<RTCORBA::ProtocolProperties>::duplicate (
00070     RTCORBA::ProtocolProperties_ptr p)
00071 {
00072   return RTCORBA::ProtocolProperties::_duplicate (p);
00073 }
00074 
00075 void
00076 TAO::Objref_Traits<RTCORBA::ProtocolProperties>::release (
00077     RTCORBA::ProtocolProperties_ptr p)
00078 {
00079   ::CORBA::release (p);
00080 }
00081 
00082 RTCORBA::ProtocolProperties_ptr
00083 TAO::Objref_Traits<RTCORBA::ProtocolProperties>::nil (void)
00084 {
00085   return RTCORBA::ProtocolProperties::_nil ();
00086 }
00087 
00088 ::CORBA::Boolean
00089 TAO::Objref_Traits<RTCORBA::ProtocolProperties>::marshal (
00090     const RTCORBA::ProtocolProperties_ptr p,
00091     TAO_OutputCDR & cdr)
00092 {
00093   return ::CORBA::Object::marshal (p, cdr);
00094 }
00095 
00096 RTCORBA::ProtocolProperties::ProtocolProperties (void)
00097 {}
00098 
00099 RTCORBA::ProtocolProperties::~ProtocolProperties (void)
00100 {}
00101 
00102 void 
00103 RTCORBA::ProtocolProperties::_tao_any_destructor (void *_tao_void_pointer)
00104 {
00105   ProtocolProperties *_tao_tmp_pointer =
00106     static_cast<ProtocolProperties *> (_tao_void_pointer);
00107   ::CORBA::release (_tao_tmp_pointer);
00108 }
00109 
00110 RTCORBA::ProtocolProperties_ptr
00111 RTCORBA::ProtocolProperties::_narrow (
00112     ::CORBA::Object_ptr _tao_objref
00113   )
00114 {
00115   return ProtocolProperties::_duplicate (
00116       dynamic_cast<ProtocolProperties_ptr> (_tao_objref)
00117     );
00118 }
00119 
00120 RTCORBA::ProtocolProperties_ptr
00121 RTCORBA::ProtocolProperties::_unchecked_narrow (
00122     ::CORBA::Object_ptr _tao_objref
00123   )
00124 {
00125   return ProtocolProperties::_duplicate (
00126       dynamic_cast<ProtocolProperties_ptr> (_tao_objref)
00127     );
00128 }
00129 
00130 RTCORBA::ProtocolProperties_ptr
00131 RTCORBA::ProtocolProperties::_duplicate (ProtocolProperties_ptr obj)
00132 {
00133   if (! ::CORBA::is_nil (obj))
00134     {
00135       obj->_add_ref ();
00136     }
00137   
00138   return obj;
00139 }
00140 
00141 void
00142 RTCORBA::ProtocolProperties::_tao_release (ProtocolProperties_ptr obj)
00143 {
00144   ::CORBA::release (obj);
00145 }
00146 
00147 ::CORBA::Boolean
00148 RTCORBA::ProtocolProperties::_is_a (const char *value)
00149 {
00150   if (
00151       !ACE_OS::strcmp (
00152           value,
00153           "IDL:omg.org/RTCORBA/ProtocolProperties:1.0"
00154         ) ||
00155       !ACE_OS::strcmp (
00156           value,
00157           "IDL:omg.org/CORBA/LocalObject:1.0"
00158         ) ||
00159       !ACE_OS::strcmp (
00160           value,
00161           "IDL:omg.org/CORBA/Object:1.0"
00162         )
00163     )
00164     {
00165       return true; // success using local knowledge
00166     }
00167   else
00168     {
00169       return false;
00170     }
00171 }
00172 
00173 const char* RTCORBA::ProtocolProperties::_interface_repository_id (void) const
00174 {
00175   return "IDL:omg.org/RTCORBA/ProtocolProperties:1.0";
00176 }
00177 
00178 ::CORBA::Boolean
00179 RTCORBA::ProtocolProperties::marshal (TAO_OutputCDR &)
00180 {
00181   return false;
00182 }
00183 
00184 //////////////////////////////////////////////////////
00185 // CDR Encoding Support hand crafted
00186 
00187 CORBA::Boolean
00188 RTCORBA::ProtocolProperties::_tao_encode (TAO_OutputCDR &)
00189 {
00190   return true;
00191 }
00192 // TAO_IDL - Generated from
00193 // be/be_visitor_arg_traits.cpp:60
00194 
00195 CORBA::Boolean
00196 RTCORBA::ProtocolProperties::_tao_decode (TAO_InputCDR &)
00197 {
00198   return true;
00199 }
00200 TAO_END_VERSIONED_NAMESPACE_DECL
00201 
00202 

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