| 317 | //------------------------------------- |
| 318 | |
| 319 | INT YamlLoadHelper::LoadInt(const std::string key) |
| 320 | { |
| 321 | bool bFound; |
| 322 | std::string value = m_yamlHelper.GetMapValue(*m_pMapYaml, key, bFound); |
| 323 | if (value == "") |
| 324 | { |
| 325 | m_bDoGetMapRemainder = false; |
| 326 | throw std::runtime_error(m_currentMapName + ": Missing: " + key); |
| 327 | } |
| 328 | return strtol(value.c_str(), NULL, 0); |
| 329 | } |
| 330 | |
| 331 | UINT YamlLoadHelper::LoadUint(const std::string key) |
| 332 | { |
no test coverage detected