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