1#ifndef _C4_YML_EMIT_BUF_HPP_
2#define _C4_YML_EMIT_BUF_HPP_
6#ifndef _C4_YML_COMMON_HPP_
Holds a pointer to an existing tree, and a node id.
A YAML/JSON emitter, templated on a writer class such as WriterBuf, WriterFile, or WriterOStream.
Common utilities and infrastructure used by ryml.
substr emit_yaml(Tree const &t, EmitOptions const &opts, substr buf, bool error_on_excess)
(1) emit YAML to the given buffer.
substr emit_json(Tree const &t, EmitOptions const &opts, substr buf, bool error_on_excess)
(1) emit JSON to the given buffer.
Emitter< WriterBuf > EmitterBuf
basic_substring< char > substr
a mutable string view
RYML_ID_TYPE id_type
The type of a node id in the YAML tree; to override the default type, define the macro RYML_ID_TYPE t...
(Undefined by default) Use shorter error message from checks/asserts: do not show the check condition...
A lightweight object containing options to be used when emitting.
A writer to a memory buffer, in the form of a substr .