yaml-cpp
所属分类:C/C++基础
开发工具:C++
文件大小:1281KB
下载次数:0
上传日期:2023-06-14 15:47:07
上 传 者:
sh-1993
说明: C语言中的YAML解析器和发射器++
(A YAML parser and emitter in C++)
文件列表:
.bazelignore (18, 2023-10-22)
.clang-format (1390, 2023-10-22)
.codedocs (1910, 2023-10-22)
BUILD.bazel (574, 2023-10-22)
CMakeLists.txt (7096, 2023-10-22)
CONTRIBUTING.md (1319, 2023-10-22)
LICENSE (1061, 2023-10-22)
MODULE.bazel (345, 2023-10-22)
SECURITY.md (672, 2023-10-22)
WORKSPACE (377, 2023-10-22)
cmake_uninstall.cmake.in (852, 2023-10-22)
docs (0, 2023-10-22)
docs\Breaking-Changes.md (1733, 2023-10-22)
docs\How-To-Emit-YAML.md (4747, 2023-10-22)
docs\How-To-Parse-A-Document-(Old-API).md (7076, 2023-10-22)
docs\Strings.md (951, 2023-10-22)
docs\Tutorial.md (5493, 2023-10-22)
docs\_config.yml (25, 2023-10-22)
docs\index.md (183, 2023-10-22)
include (0, 2023-10-22)
include\yaml-cpp (0, 2023-10-22)
include\yaml-cpp\anchor.h (501, 2023-10-22)
include\yaml-cpp\binary.h (2113, 2023-10-22)
include\yaml-cpp\contrib (0, 2023-10-22)
include\yaml-cpp\contrib\anchordict.h (1057, 2023-10-22)
include\yaml-cpp\contrib\graphbuilder.h (5311, 2023-10-22)
include\yaml-cpp\depthguard.h (2254, 2023-10-22)
include\yaml-cpp\dll.h (2013, 2023-10-22)
include\yaml-cpp\emitfromevents.h (1679, 2023-10-22)
include\yaml-cpp\emitter.h (7861, 2023-10-22)
include\yaml-cpp\emitterdef.h (541, 2023-10-22)
include\yaml-cpp\emittermanip.h (3245, 2023-10-22)
include\yaml-cpp\emitterstyle.h (502, 2023-10-22)
... ...
# yaml-cpp ![Build Status](https://github.com/jbeder/yaml-cpp/actions/workflows/build.yml/badge.svg) [![Documentation](https://codedocs.xyz/jbeder/yaml-cpp.svg)](https://codedocs.xyz/jbeder/yaml-cpp/)
`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).
## Usage
See [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)).
## Any Problems?
If you find a bug, post an [issue](https://github.com/jbeder/yaml-cpp/issues)! If you have questions about how to use yaml-cpp, please post it on http://stackoverflow.com and tag it [`yaml-cpp`](http://stackoverflow.com/questions/tagged/yaml-cpp).
## How to Build
`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:
**Note:** If you don't use the provided installer for your platform, make sure that you add `CMake`'s bin folder to your path.
#### 1. Navigate into the source directory, create build folder and run `CMake`:
```sh
mkdir build
cd build
cmake [-G generator] [-DYAML_BUILD_SHARED_LIBS=on|OFF] ..
```
* The `generator` option is the build system you'd like to use. Run `cmake` without arguments to see a full list of available generators.
* On Windows, you might use "Visual Studio 12 2013" (VS 2013 32-bits), or "Visual Studio 14 2015 Win***" (VS 2015 ***-bits).
* On OS X, you might use "Xcode".
* On a UNIX-like system, omit the option (for a Makefile).
* `yaml-cpp` builds a static library by default, you may want to build a shared library by specifying `-DYAML_BUILD_SHARED_LIBS=ON`.
* For more options on customizing the build, see the [CMakeLists.txt](https://github.com/jbeder/yaml-cpp/blob/master/CMakeLists.txt) file.
#### 2. Build it!
* The command you'll need to run depends on the generator you chose earlier.
**Note:** To clean up, just remove the `build` directory.
## Recent Releases
[yaml-cpp 0.6.0](https://github.com/jbeder/yaml-cpp/releases/tag/yaml-cpp-0.6.0) released! This release requires C++11, and no longer depends on Boost.
[yaml-cpp 0.3.0](https://github.com/jbeder/yaml-cpp/releases/tag/release-0.3.0) is still available if you want the old API.
**The old API will continue to be supported, and will still receive bugfixes!** The 0.3.x and 0.4.x versions will be old API releases, and 0.5.x and above will all be new API releases.
# API Documentation
The autogenerated API reference is hosted on [CodeDocs](https://codedocs.xyz/jbeder/yaml-cpp/index.html)
# Third Party Integrations
The following projects are not officially supported:
- [Qt wrapper](https://gist.github.com/brcha/d392b2fe5f1e427cc8a6)
- [UnrealEngine Wrapper](https://github.com/jwindgassen/UnrealYAML)
近期下载者:
相关文件:
收藏者: