How to set an emit style for a particular yaml-cpp node

不想你离开。 提交于 2019-12-05 15:22:02
Ana Fernandez Vidal

This feature has already been implemented as pointed out in this question.

You can set the node style with the following code

node.SetStyle(YAML::EmitterStyle::Flow);

or

node.SetStyle(YAML::EmitterStyle::Block);

That's currently not possible, but I've submitted it as a feature request:

http://code.google.com/p/yaml-cpp/issues/detail?id=184

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!