| 353 | } |
| 354 | |
| 355 | bool YamlLoadHelper::LoadBool(const std::string key) |
| 356 | { |
| 357 | bool bFound; |
| 358 | std::string value = m_yamlHelper.GetMapValue(*m_pMapYaml, key, bFound); |
| 359 | if (value == "true") |
| 360 | return true; |
| 361 | else if (value == "false") |
| 362 | return false; |
| 363 | m_bDoGetMapRemainder = false; |
| 364 | throw std::runtime_error(m_currentMapName + ": Missing: " + key); |
| 365 | } |
| 366 | |
| 367 | std::string YamlLoadHelper::LoadString_NoThrow(const std::string& key, bool& bFound) |
| 368 | { |
no test coverage detected