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