Commit e5d03667 authored by Jesse Beder's avatar Jesse Beder
Browse files

Added Dump()

parent c3798d9b
......@@ -15,6 +15,8 @@ namespace YAML
Emitter& operator << (Emitter& out, const Node& node);
std::ostream& operator << (std::ostream& out, const Node& node);
std::string Dump(const Node& node);
}
#endif // NODE_EMIT_H_62B23520_7C8E_11DE_8A39_0800200C9A66
......
......@@ -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();
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment