Switched the Iterator implementation to a dedicated helper class (to hide the specific implementation, since it's pretty messy and may change).

This commit is contained in:
beder
2008-07-21 02:54:39 +00:00
parent 557f81e622
commit 57255a9898
10 changed files with 143 additions and 68 deletions

View File

@@ -20,7 +20,11 @@ void run()
YAML::Node doc;
parser.GetNextDocument(doc);
std::cout << doc;
for(YAML::Iterator it=doc.begin();it!=doc.end();++it) {
std::string item;
*it >> item;
std::cout << item << "\n";
}
} catch(YAML::Exception&) {
std::cout << "Error parsing the yaml!\n";
}