| 885 | } |
| 886 | |
| 887 | inline bool Config::GetInt( |
| 888 | const std::unordered_map<std::string, std::string>& params, |
| 889 | const std::string& name, int* out) { |
| 890 | if (params.count(name) > 0 && !params.at(name).empty()) { |
| 891 | if (!Common::AtoiAndCheck(params.at(name).c_str(), out)) { |
| 892 | Log::Fatal("Parameter %s should be of type int, got \"%s\"", |
| 893 | name.c_str(), params.at(name).c_str()); |
| 894 | } |
| 895 | return true; |
| 896 | } |
| 897 | return false; |
| 898 | } |
| 899 | |
| 900 | inline bool Config::GetDouble( |
| 901 | const std::unordered_map<std::string, std::string>& params, |
nothing calls this directly
no test coverage detected