| 224 | } |
| 225 | |
| 226 | bool YamlHelper::GetSubMap(MapYaml** mapYaml, const std::string& key, const bool canBeNull/*=false*/) |
| 227 | { |
| 228 | MapYaml::const_iterator iter = (*mapYaml)->find(key); |
| 229 | if (iter == (*mapYaml)->end() || (!canBeNull && iter->second.subMap == NULL)) |
| 230 | { |
| 231 | return false; // not found |
| 232 | } |
| 233 | |
| 234 | *mapYaml = iter->second.subMap; |
| 235 | return true; |
| 236 | } |
| 237 | |
| 238 | void YamlHelper::GetMapRemainder(std::string& mapName, MapYaml& mapYaml) |
| 239 | { |
no outgoing calls
no test coverage detected