| 383 | } |
| 384 | |
| 385 | float YamlLoadHelper::LoadFloat(const std::string& key) |
| 386 | { |
| 387 | bool bFound; |
| 388 | std::string value = m_yamlHelper.GetMapValue(*m_pMapYaml, key, bFound); |
| 389 | if (value == "") |
| 390 | { |
| 391 | m_bDoGetMapRemainder = false; |
| 392 | throw std::runtime_error(m_currentMapName + ": Missing: " + key); |
| 393 | } |
| 394 | return strtof(value.c_str(), NULL); |
| 395 | } |
| 396 | |
| 397 | double YamlLoadHelper::LoadDouble(const std::string& key) |
| 398 | { |
no test coverage detected