blob: 9b3d2c794d55403a594e0cf9d0eefc8af3c58607 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// -*- C++ -*-
ACE_INLINE int
TAO_LB_Location_Equal_To::operator () (
const PortableGroup::Location &lhs,
const PortableGroup::Location &rhs) const
{
// @todo Interim implementation until we figure out what to do when a
// location has multiple components.
CORBA::ULong lhs_len = lhs.length ();
CORBA::ULong rhs_len = rhs.length ();
if (lhs_len != rhs_len)
return 0;
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 0;
return 1;
}
|