value.cpp 299 Bytes
Newer Older
1
#include "yaml-cpp/value.h"
2
#include <map>
3
4
5

int main()
{
6
7
8
9
	YAML::Value value = YAML::Parse("{foo: bar, monkey: value}");
	for(YAML::const_iterator it=value.begin();it!=value.end();++it) {
		std::cout << it->first.as<std::string>() << " -> " << it->second.as<std::string>() << "\n";
	}
10
	
11
12
	return 0;
}