Began new-api branch, and removed all traces of the old api from this branch

This commit is contained in:
beder
2012-01-20 23:36:08 -06:00
parent 9403ac04fa
commit 90f48fd035
28 changed files with 9 additions and 4164 deletions

View File

@@ -37,18 +37,8 @@ public:
void parse(std::istream& input)
{
try {
#ifdef YAML_CPP_OLD_API
YAML::Parser parser(input);
YAML::Node doc;
while(parser.GetNextDocument(doc)) {
YAML::Emitter emitter;
emitter << doc;
std::cout << emitter.c_str() << "\n";
}
#else
YAML::Node doc = YAML::Load(input);
std::cout << doc << "\n";
#endif
} catch(const YAML::Exception& e) {
std::cerr << e.what() << "\n";
}