| 255 | } |
| 256 | |
| 257 | float ConfigurationSystem::GetFloat(const char* key, float defaultValue) const |
| 258 | { |
| 259 | auto it = m_config.find(key); |
| 260 | if (it == m_config.end()) |
| 261 | { |
| 262 | return defaultValue; |
| 263 | } |
| 264 | return static_cast<float>(atof(it->second.value.c_str())); |
| 265 | } |
| 266 | |
| 267 | bool ConfigurationSystem::HasKey(const char* key) const |
| 268 | { |
no outgoing calls
no test coverage detected