summaryrefslogtreecommitdiff
path: root/trunk/TAO/tao/Base_Transport_Property.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/tao/Base_Transport_Property.cpp')
-rw-r--r--trunk/TAO/tao/Base_Transport_Property.cpp58
1 files changed, 58 insertions, 0 deletions
diff --git a/trunk/TAO/tao/Base_Transport_Property.cpp b/trunk/TAO/tao/Base_Transport_Property.cpp
new file mode 100644
index 00000000000..4f46e782f41
--- /dev/null
+++ b/trunk/TAO/tao/Base_Transport_Property.cpp
@@ -0,0 +1,58 @@
+//$Id$
+
+#include "tao/Base_Transport_Property.h"
+#include "ace/OS_Memory.h"
+
+#if !defined (__ACE_INLINE__)
+# include "tao/Base_Transport_Property.inl"
+#endif /* __ACE_INLINE__ */
+
+ACE_RCSID (tao,
+ Base_Transport_Property,
+ "$Id$")
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+TAO_Base_Transport_Property::~TAO_Base_Transport_Property (void)
+{
+}
+
+TAO_Transport_Descriptor_Interface *
+TAO_Base_Transport_Property::duplicate (void)
+{
+ // Get a copy of the underlying endpoint
+ TAO_Endpoint * const endpt = this->endpoint_->duplicate ();
+ if (endpt == 0)
+ return 0;
+
+ // Construct a copy of our class
+ TAO_Base_Transport_Property *prop = 0;
+ ACE_NEW_RETURN (prop,
+ TAO_Base_Transport_Property (endpt,
+ true),
+ 0);
+ return prop;
+}
+
+
+CORBA::Boolean
+TAO_Base_Transport_Property::is_equivalent (
+ const TAO_Transport_Descriptor_Interface *rhs)
+{
+ const TAO_Base_Transport_Property *other_desc =
+ dynamic_cast<const TAO_Base_Transport_Property *> (rhs);
+
+ if (other_desc == 0)
+ return false;
+
+ return this->endpoint_->is_equivalent (other_desc->endpoint_);
+}
+
+
+u_long
+TAO_Base_Transport_Property::hash (void) const
+{
+ return this->endpoint_->hash ();
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL