bool getStringArgument(const Arguments& arguments, const std::string& argument, http::server::reply& reply, std::string& result) const { Arguments::const_iterator itr = arguments.find(argument); if (itr == arguments.end()) { reportMissingArgument(argument, reply); return false; } result = itr->second; return true; }
std::string HttpHandler::GetArgument(const Arguments& getArguments, const std::string& name, const std::string& defaultValue) { Arguments::const_iterator it = getArguments.find(name); if (it == getArguments.end()) { return defaultValue; } else { return it->second; } }