Question

Is there a C++ library for emitting YAML? Wikipedia mentions a c++ wrapper for libyaml, but the link is broken. The official YAML site only offers yaml-cpp, which was also suggested in this SO question, but cpp-yaml is only a parser, not an emitter. Am I out of luck?

Edit: I'm looking for an object oriented interface, hence the C++ requirement. I know I could use libyaml's C interface in C++ code, but that's less than ideal.

Was it helpful?

Solution

Per your suggestion, yaml-cpp now has an emitter.

OTHER TIPS

How about libyaml ?

LibYAML is a YAML 1.1 parser and emitter written in C.

And, more directly, emitter.c ?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top