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_
36 em.emit_as(EMIT_YAML, &t);
49 em.emit_as(EMIT_JSON, &t);
64 em.emit_as(EMIT_YAML, &t,
id);
76 em.emit_as(EMIT_JSON, &t,
id);
91 em.emit_as(EMIT_YAML, r.
tree(), r.
id());
103 em.emit_as(EMIT_JSON, r.
tree(), r.
id());
Holds a pointer to an existing tree, and a node id.
id_type id() const noexcept
Tree const * tree() const noexcept
A YAML/JSON emitter, templated on a writer class such as WriterBuf, WriterFile, or WriterOStream.
void emit_as(EmitType_e type, Tree const *tree, id_type id=NONE)
emit!
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< WriterFile > EmitterFile
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.