#include "orbsvcs/PortableGroup/PG_Operators.h"
#include "ace/OS_NS_string.h"
Go to the source code of this file.
Functions | |
bool | operator== (const CosNaming::Name &lhs, const CosNaming::Name &rhs) |
Global CosNaming::Name equality operator. | |
bool | operator!= (const CosNaming::Name &lhs, const CosNaming::Name &rhs) |
Global CosNaming::Name inequality operator. |
bool operator!= | ( | const CosNaming::Name & | lhs, | |
const CosNaming::Name & | rhs | |||
) |
Global CosNaming::Name inequality operator.
This simple implementation simply negates the result of the equality operator.
Definition at line 28 of file PG_Operators.cpp.
{
return !(lhs == rhs);
}
bool operator== | ( | const CosNaming::Name & | lhs, | |
const CosNaming::Name & | rhs | |||
) |
Global CosNaming::Name equality operator.
Used for checking equality of PortableGroup::Location and PortableGroup::Property variables.
Definition at line 11 of file PG_Operators.cpp.
{ const CORBA::ULong lhs_len = lhs.length (); const CORBA::ULong rhs_len = rhs.length (); if (lhs_len != rhs_len) return false; for (CORBA::ULong i = 0; i < lhs_len; ++i) if (ACE_OS::strcmp (lhs[i].id.in (), rhs[i].id.in ()) != 0 || ACE_OS::strcmp (lhs[i].kind.in (), rhs[i].kind.in ()) != 0) return false; return true; }