I test phonebook in Ice-3.0.1\demo\Freeze\phonebook,It used index,It can find someone's contacts ,
But if I want to find all contacts ,how to do it?It seems like there is no the function in the index class of slice2freeze,Contacts
PhoneBookI::findContacts(const string& name, const Ice::Current& c) const
{
try
{
vector<Ice::Identity> identities = _index->find(name);
Contacts contacts;
contacts.reserve(identities.size());
transform(identities.begin(), identities.end(), back_inserter(contacts), IdentityToContact(c.adapter));
return contacts;
}
catch(const Freeze:atabaseException& ex)
{
DatabaseException e;
e.message = ex.message;
throw e;
}
}
any ideas?Thanks!

atabaseException& ex)
Reply With Quote
