Exemplo n.º 1
0
void 
ServerLocatorRegistry::setReplicatedAdapterDirectProxy_async(
    const Ice::AMD_LocatorRegistry_setReplicatedAdapterDirectProxyPtr& cb,
    const std::string& adapter, const ::std::string& replicaGroup, const ::Ice::ObjectPrx& object, 
    const ::Ice::Current&)
{
    _adapters[adapter] = object;
    _adapters[replicaGroup] = object;
    cb->ice_response();
}
Exemplo n.º 2
0
void
ServerLocatorRegistry::setReplicatedAdapterDirectProxy_async(
    const Ice::AMD_LocatorRegistry_setReplicatedAdapterDirectProxyPtr& cb,
    const string& adapter, const string& replicaGroup, const ::Ice::ObjectPrx& object,
    const ::Ice::Current&)
#endif
{
    if(!object)
    {
        _adapters.erase(adapter);
        _adapters.erase(replicaGroup);
    }
    else
    {
        _adapters[adapter] = object;
        _adapters[replicaGroup] = object;
    }
#ifdef ICE_CPP11_MAPPING
    response();
#else
    cb->ice_response();
#endif
}