Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Base_Transport_Property.cpp

Go to the documentation of this file.
00001 #include "tao_pch.h"
00002 //$Id: Base_Transport_Property.cpp,v 1.1.1.1.40.1 2003/03/14 16:05:12 chad Exp $
00003 
00004 #include "tao/Base_Transport_Property.h"
00005 
00006 
00007 
00008 #if !defined (__ACE_INLINE__)
00009 # include "tao/Base_Transport_Property.inl"
00010 #endif /* __ACE_INLINE__ */
00011 
00012 ACE_RCSID(tao, Base_Transport_Property, "$Id: Base_Transport_Property.cpp,v 1.1.1.1.40.1 2003/03/14 16:05:12 chad Exp $")
00013 
00014 
00015 TAO_Base_Transport_Property::~TAO_Base_Transport_Property (void)
00016 {
00017 }
00018 
00019 
00020 TAO_Transport_Descriptor_Interface *
00021 TAO_Base_Transport_Property::duplicate (void)
00022 {
00023   // Get a copy of the underlying endpoint
00024   TAO_Endpoint *endpt = this->endpoint_->duplicate ();
00025   if (endpt == 0)
00026     return 0;
00027 
00028   // Construct a copy of our class
00029   TAO_Base_Transport_Property *prop = 0;
00030   ACE_NEW_RETURN (prop,
00031                   TAO_Base_Transport_Property (endpt,
00032                                                1),
00033                   0);
00034   return prop;
00035 }
00036 
00037 
00038 CORBA::Boolean
00039 TAO_Base_Transport_Property::is_equivalent (
00040     const TAO_Transport_Descriptor_Interface *rhs)
00041 {
00042   // Do away with const.
00043   TAO_Transport_Descriptor_Interface *r =
00044     ACE_const_cast (TAO_Transport_Descriptor_Interface *,
00045                     rhs);
00046 
00047   TAO_Base_Transport_Property *other_desc =
00048     ACE_dynamic_cast (TAO_Base_Transport_Property *,
00049                       r);
00050 
00051   if (other_desc == 0)
00052     return 0;
00053 
00054   return this->endpoint_->is_equivalent (other_desc->endpoint_);
00055 }
00056 
00057 
00058 u_long
00059 TAO_Base_Transport_Property::hash (void) const
00060 {
00061   return this->endpoint_->hash ();
00062 }

Generated on Mon Jun 16 13:48:01 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002