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