summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpgontla <pgontla@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-07-31 16:49:44 +0000
committerpgontla <pgontla@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-07-31 16:49:44 +0000
commite6bb6580aa35f46bebd73cf0296ecfba787404a0 (patch)
tree38694b770d6dfd364be52e0a529cf689d50968c2
parent80fb52118457e166a308e3ef015be69374166344 (diff)
downloadATCD-e6bb6580aa35f46bebd73cf0296ecfba787404a0.tar.gz
ChangeLogTag: Wed Jul 31 09:45:01 2002 Priyanka Gontla <pgontla@ece.uci.edu>
-rw-r--r--TAO/ChangeLog8
-rw-r--r--TAO/orbsvcs/PSS/PSDL_String.cpp14
-rw-r--r--TAO/orbsvcs/PSS/PSDL_String.h6
3 files changed, 28 insertions, 0 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog
index a14f619fed3..9a8dd8f6312 100644
--- a/TAO/ChangeLog
+++ b/TAO/ChangeLog
@@ -1,3 +1,11 @@
+Wed Jul 31 09:45:01 2002 Priyanka Gontla <pgontla@ece.uci.edu>
+
+ * orbsvcs/PSS/PSDL_String.h:
+ * orbsvcs/PSS/PSDL_String.cpp:
+ Added an operator equality and inequality comparison operator
+ methods. Fixes the Lynx_PPC build with explicit template
+ instantiations
+
Wed Jul 31 11:34:02 2002 Nanbor Wang <nanbor@cs.wustl.edu>
* docs/releasenotes/index.html: Added a place holder for CIAO,
diff --git a/TAO/orbsvcs/PSS/PSDL_String.cpp b/TAO/orbsvcs/PSS/PSDL_String.cpp
index d3f5de8f5b4..3c1d8880ca9 100644
--- a/TAO/orbsvcs/PSS/PSDL_String.cpp
+++ b/TAO/orbsvcs/PSS/PSDL_String.cpp
@@ -93,6 +93,20 @@ TAO_PSDL_String::operator= (const ACE_CString & rhs)
this->length_ = 0;
}
+int
+TAO_PSDL_String::operator== (const TAO_PSDL_String &rhs) const
+{
+ return (ACE_OS::strcmp (buffer_, rhs.buffer_) == 0);
+
+}
+
+int
+TAO_PSDL_String::operator!= (const TAO_PSDL_String &rhs) const
+{
+ return (ACE_OS::strcmp (buffer_, rhs.buffer_) != 0);
+
+}
+
u_long
TAO_PSDL_String::hash (void) const
{
diff --git a/TAO/orbsvcs/PSS/PSDL_String.h b/TAO/orbsvcs/PSS/PSDL_String.h
index 51bb476c9fe..4d63c2cb5a8 100644
--- a/TAO/orbsvcs/PSS/PSDL_String.h
+++ b/TAO/orbsvcs/PSS/PSDL_String.h
@@ -55,6 +55,12 @@ public:
// Conversion operator (assignment)
void operator= (const ACE_CString & rhs);
+ /// Equality comparison operator.
+ int operator== (const TAO_PSDL_String &rhs) const;
+
+ /// Inequality comparison operator.
+ int operator!= (const TAO_PSDL_String &rhs) const;
+
/// Returns a hash value for this string.
u_long hash (void) const;