RT_Transport_Descriptor_Property.cpp

Go to the documentation of this file.
00001 // $Id: RT_Transport_Descriptor_Property.cpp 71473 2006-03-10 07:19:20Z jtc $
00002 
00003 #include "tao/RTCORBA/RT_Transport_Descriptor_Property.h"
00004 
00005 #include "ace/OS_Memory.h"
00006 
00007 #if ! defined (__ACE_INLINE__)
00008 #include "tao/RTCORBA/RT_Transport_Descriptor_Property.inl"
00009 #endif /* __ACE_INLINE__ */
00010 
00011 ACE_RCSID (RTCORBA,
00012            TAO_RT_Transport_Descriptor_Property,
00013            "$Id: RT_Transport_Descriptor_Property.cpp 71473 2006-03-10 07:19:20Z jtc $")
00014 
00015 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00016 
00017 TAO_RT_Transport_Descriptor_Property::~TAO_RT_Transport_Descriptor_Property (void)
00018 {
00019 }
00020 
00021 /*************************************************************************************************/
00022 
00023 TAO_RT_Transport_Descriptor_Private_Connection_Property::~TAO_RT_Transport_Descriptor_Private_Connection_Property (void)
00024 {
00025 }
00026 
00027 TAO_RT_Transport_Descriptor_Property*
00028 TAO_RT_Transport_Descriptor_Private_Connection_Property::duplicate (void)
00029 {
00030   // Construct a copy of our class
00031   TAO_RT_Transport_Descriptor_Private_Connection_Property *desc_prop = 0;
00032 
00033   ACE_NEW_RETURN (desc_prop,
00034                   TAO_RT_Transport_Descriptor_Private_Connection_Property (this->object_id_),
00035                   0);
00036 
00037   return desc_prop;
00038 }
00039 
00040 CORBA::Boolean
00041 TAO_RT_Transport_Descriptor_Private_Connection_Property::is_equivalent (const TAO_RT_Transport_Descriptor_Property *other_prop)
00042 {
00043   const TAO_RT_Transport_Descriptor_Private_Connection_Property *rhs =
00044     dynamic_cast<const TAO_RT_Transport_Descriptor_Private_Connection_Property*> (other_prop);
00045   return (rhs != 0 &&
00046           this->object_id_ == rhs->object_id_);
00047 }
00048 
00049 /*************************************************************************************************/
00050 
00051 TAO_RT_Transport_Descriptor_Banded_Connection_Property::~TAO_RT_Transport_Descriptor_Banded_Connection_Property ()
00052 {
00053 }
00054 
00055 TAO_RT_Transport_Descriptor_Property*
00056 TAO_RT_Transport_Descriptor_Banded_Connection_Property::duplicate (void)
00057 {
00058   // Construct a copy of our class
00059   TAO_RT_Transport_Descriptor_Banded_Connection_Property *desc_prop = 0;
00060 
00061   ACE_NEW_RETURN (desc_prop,
00062                   TAO_RT_Transport_Descriptor_Banded_Connection_Property (this->low_priority_,
00063                                   this->high_priority_),
00064                   0);
00065 
00066   return desc_prop;
00067 }
00068 
00069 CORBA::Boolean
00070 TAO_RT_Transport_Descriptor_Banded_Connection_Property::is_equivalent (const TAO_RT_Transport_Descriptor_Property *other_prop)
00071 {
00072   const TAO_RT_Transport_Descriptor_Banded_Connection_Property *rhs =
00073     dynamic_cast<const TAO_RT_Transport_Descriptor_Banded_Connection_Property*> (other_prop);
00074 
00075   return (rhs != 0 &&
00076           this->low_priority_ == rhs->low_priority_ &&
00077           this->high_priority_ == rhs->high_priority_);
00078 }
00079 
00080 TAO_END_VERSIONED_NAMESPACE_DECL

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