YamlMapping * YamlMapping::getMapping(char *k) { YamlNode *n = getValue(k); if(n != NULL){ return n->toMapping(); } return NULL; }
YamlMapping * YamlSequence::getMappingAt(int x) { try{ YamlNode *n = value.at(x); return n->toMapping(); }catch(std::out_of_range& e){ return NULL; } }