blob: c73be7e8ad550fb9c5ca8fa10dbdb2c61b90e4f7 (
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 LoadBalancing::Location &lhs,
const LoadBalancing::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;
}
|