tags:

views:

440

answers:

2

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.

+2  A: 

How about libyaml ?

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

And, more directly, emitter.c ?

gimel
I acknowledge libyaml in my question, but I'm looking for a C++ object-oriented interface.
redmoskito
+2  A: 

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

Jesse Beder