| 898 | } |
| 899 | |
| 900 | inline bool Config::GetDouble( |
| 901 | const std::unordered_map<std::string, std::string>& params, |
| 902 | const std::string& name, double* out) { |
| 903 | if (params.count(name) > 0 && !params.at(name).empty()) { |
| 904 | if (!Common::AtofAndCheck(params.at(name).c_str(), out)) { |
| 905 | Log::Fatal("Parameter %s should be of type double, got \"%s\"", |
| 906 | name.c_str(), params.at(name).c_str()); |
| 907 | } |
| 908 | return true; |
| 909 | } |
| 910 | return false; |
| 911 | } |
| 912 | |
| 913 | inline bool Config::GetBool( |
| 914 | const std::unordered_map<std::string, std::string>& params, |
nothing calls this directly
no test coverage detected