Example #1
0
YamlScalar *
YamlMapping::getScalar(char *k)
{
	YamlNode *n = getValue(k);
	if(n != NULL){
		return n->toScalar();
	}
	return NULL; 
}
Example #2
0
YamlScalar *
YamlSequence::getScalarAt(int x)
{
	try{
		YamlNode *n = value.at(x);
		return n->toScalar();
	}catch(std::out_of_range& e){
		return NULL;
	}
}