| 174 | } |
| 175 | |
| 176 | float GetFloat(const std::string& name, float defaultValue) const override |
| 177 | { |
| 178 | float result = defaultValue; |
| 179 | std::string value; |
| 180 | if (TryGetString(name, &value)) |
| 181 | { |
| 182 | try |
| 183 | { |
| 184 | result = std::stof(value); |
| 185 | } |
| 186 | catch (const std::exception&) |
| 187 | { |
| 188 | } |
| 189 | } |
| 190 | return result; |
| 191 | } |
| 192 | |
| 193 | std::string GetString(const std::string& name, const std::string& defaultValue) const override |
| 194 | { |
no outgoing calls