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