| 207 | } |
| 208 | |
| 209 | std::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 | |
| 226 | bool YamlHelper::GetSubMap(MapYaml** mapYaml, const std::string& key, const bool canBeNull/*=false*/) |
| 227 | { |
no outgoing calls
no test coverage detected