概要
yaml-cpp は、YAML 1.2 仕様に準拠したパースと生成機能を提供する C++ ライブラリです。CMake によるビルドに対応しており、プロジェクトに簡単に統合できます。API は安定しており、C++ アプリケーションにおける設定ファイルの読み書きやデータシリアライゼーションに広く利用されています。
README プレビュー
# yaml-cpp [](https://codedocs.xyz/jbeder/yaml-cpp/)\n\n`yaml-cpp` is a [YAML](http://www.yaml.org/) parser and emitter in C++ matching the [YAML 1.2 spec](http://www.yaml.org/spec/1.2/spec.html).\n\n## Usage\n\nSee [Tutorial](https://github.com/jbeder/yaml-cpp/wiki/Tutorial) and [How to Emit YAML](https://github.com/jbeder/yaml-cpp/wiki/How-To-Emit-YAML) for reference. For the old API (until 0.5.0), see [How To Parse A Document](https://github.com/jbeder/yaml-cpp/wiki/How-To-Parse-A-Document-(Old-API)).\n\n## How to Build\n\n`yaml-cpp` uses [CMake](http://www.cmake.org) to support cross-platform building. Install [CMake](http://www.cmake.org) _(Resources -> Download)_ before proceeding. The basic steps to build are:\n\n**Note:** If you don't use the provided installer for your platform, make sure that you add `CMake`'s bin folder to your path.\n\n#### 1. Navigate into the source directory, create build folder and run `CMake`:\n\n```sh\nmkdir build\ncd build\ncmake [-G generator] [-DYAML_BUILD_SHARED_LIBS=on|OFF] ..\n```\n\n * The `generator` option is the build system you'd like to use. Run `cmake` without arguments to see a full list of available generators.\n * On Windows, you might use "Visual Studio 12 2013" (VS 2013 32-bits), or "Visual Studio 14 2015 Win64" (VS 2015 64-bits).\n * On OS X, you might use "Xcode".\n * On a UNIX-like system, omit the option (for a Makefile).\n\n * `yaml-cpp` builds a static library by default, you may want to build a shared library by specifying `-DYAML_BUILD_SHARED_LIBS=ON`.\n\n * [Debug mode of the GNU standard C++\n library](https://gcc.gnu.org/onlinedocs/libstdc++/manual/debug_mode.html)\n can be used when both `yaml-cpp` and client code is compiled with the\n `_GLIBCXX_DEBUG` flag (e.g. by calling CMake with `-D\n CMAKE_CXX_FLAGS_DEBUG='-g -D_GLIBCXX_DEBUG'` option).\n\n Note that for `yaml-cpp` unit tests to run successfully, the _GoogleTest_\n library also must be built with this flag, i.e. t