Added Dump()

This commit is contained in:
beder
2011-09-13 14:49:00 -05:00
parent 0a1022a526
commit 4e6418ff12
2 changed files with 9 additions and 0 deletions

View File

@@ -20,4 +20,11 @@ namespace YAML
out << emitter.c_str();
return out;
}
std::string Dump(const Node& node)
{
Emitter emitter;
emitter << node;
return emitter.c_str();
}
}