mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Implemented begin/end doc
This commit is contained in:
@@ -4,14 +4,11 @@
|
||||
int main()
|
||||
{
|
||||
YAML::Emitter out;
|
||||
out << YAML::BeginDoc;
|
||||
out << YAML::BeginSeq;
|
||||
out << "foo";
|
||||
out << YAML::Comment("Skills");
|
||||
out << YAML::BeginMap;
|
||||
out << YAML::Key << "attack" << YAML::Value << 23;
|
||||
out << YAML::Key << "intelligence" << YAML::Value << 56;
|
||||
out << YAML::EndMap;
|
||||
out << YAML::EndSeq;
|
||||
out << YAML::EndDoc;
|
||||
|
||||
std::cout << out.c_str() << "\n";
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user