MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / LoadFloat

Method LoadFloat

source/YamlHelper.cpp:385–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385float 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
397double YamlLoadHelper::LoadDouble(const std::string& key)
398{

Callers 1

Calls 1

GetMapValueMethod · 0.80

Tested by

no test coverage detected