YAML serialization library for C++?

蹲街弑〆低调 提交于 2020-01-20 18:48:08

问题


YAML seems like a great format for configuration files & data binding persistent objects in human-readable form...

Is there a C++ library that handles YAML? Does Boost::Serialization have plans for a YAML option?

EDIT: I would prefer an OO library.


回答1:


A quick search gave me this: yaml-cpp




回答2:


Try the YAML component from the BOOST vault serialization library.

EDIT 2014: A recent development, https://groups.google.com/d/msg/boost-devel-archive/mhT7qIh1nsI/uXAuXFAWrxQJ

EDIT 2019: Didn't try it yet, but this seems to be a serious take: https://github.com/rwols/yaml-archive




回答3:


I found this, please if you use it let me know how it did it for you and post some example if possible,

https://code.google.com/p/google-summer-of-code-2008-boost/downloads/list

UPDATED link (as 2014), it seems to point to the same files as the BOOST vault answer.



来源:https://stackoverflow.com/questions/244784/yaml-serialization-library-for-c

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