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

Method GetMapValue

source/YamlHelper.cpp:209–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209std::string YamlHelper::GetMapValue(MapYaml& mapYaml, const std::string& key, bool& bFound)
210{
211 MapYaml::const_iterator iter = mapYaml.find(key);
212 if (iter == mapYaml.end() || iter->second.subMap != NULL)
213 {
214 bFound = false; // not found
215 return "";
216 }
217
218 std::string value = iter->second.value;
219
220 mapYaml.erase(iter);
221
222 bFound = true;
223 return value;
224}
225
226bool YamlHelper::GetSubMap(MapYaml** mapYaml, const std::string& key, const bool canBeNull/*=false*/)
227{

Callers 7

LoadIntMethod · 0.80
LoadUintMethod · 0.80
LoadUint64Method · 0.80
LoadBoolMethod · 0.80
LoadString_NoThrowMethod · 0.80
LoadFloatMethod · 0.80
LoadDoubleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected