void RpcServer::addService(const std::string& praefix, const ServiceRegistry& service) { std::vector<std::string> procs = service.getProcedureNames(); for (std::vector<std::string>::const_iterator it = procs.begin(); it != procs.end(); ++it) { registerProcedure(praefix + *it, service.getProcedure(*it)); } }
void RpcServer::addService(const std::string& domain, const ServiceRegistry& service) { std::vector<std::string> procs = service.getProcedureNames(); for (std::vector<std::string>::const_iterator it = procs.begin(); it != procs.end(); ++it) { registerProcedure(domain.empty() ? *it : (domain + '\0' + *it), service.getProcedure(*it)); } }