1 #ifndef C4_YML_EMIT_FILE_HPP_
4 #ifndef C4_YML_WRITER_FILE_HPP_
7 #ifndef C4_YML_TREE_HPP_
10 #ifndef C4_YML_NODE_HPP_
13 #ifndef C4_YML_EMITTER_DEF_HPP_
A YAML/JSON emitter, templated on a writer class such as WriterBuf, WriterFile, or WriterOStream...
id_type id() const noexcept
substr emit_json(Tree const &t, EmitOptions const &opts, substr buf, bool error_on_excess)
(1) emit JSON to the given buffer.
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...
void emit_as(EmitType_e type, Tree const *tree, id_type id=NONE)
emit!
Holds a pointer to an existing tree, and a node id.
Tree const * tree() const noexcept
substr emit_yaml(Tree const &t, EmitOptions const &opts, substr buf, bool error_on_excess)
(1) emit YAML to the given buffer.
A lightweight object containing options to be used when emitting.