Removed the document class (since it's really just a root node, and that's it).

This commit is contained in:
beder
2008-07-04 22:56:43 +00:00
parent 99a9aaa591
commit c4c873733b
7 changed files with 27 additions and 103 deletions

View File

@@ -72,11 +72,11 @@ int main()
if(!parser)
return 0;
YAML::Document doc;
YAML::Node doc;
parser.GetNextDocument(doc);
Level level;
doc.GetRoot() >> level;
doc >> level;
std::cout << level;
} catch(YAML::Exception&) {
std::cout << "Error parsing the yaml!\n";