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

This commit is contained in:
Jesse Beder 2008-07-04 22:56:43 +00:00
parent 2be40919de
commit ed488e5197
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";