rapidyaml 0.14.0
parse and emit YAML, and do it fast
Loading...
Searching...
No Matches
c4::yml::Emitter< Writer > Class Template Reference

A stateful emitter, for use with a writer such as WriterBuf, WriterFile, or WriterOStream. More...

#include <emit.hpp>

Public Member Functions

template<class ... WriterArgs>
 Emitter (EmitOptions const &opts, WriterArgs &&...args)
 Construct the emitter and its internal Writer state.
template<class ... WriterArgs>
 Emitter (WriterArgs &&...args)
 Construct the emitter and its internal Writer state, using default emit options.
substr emit_as (EmitType_e type, Tree const &t, id_type id, bool error_on_excess)
 emit!
substr emit_as (EmitType_e type, Tree const &t, bool error_on_excess=true)
 emit starting at the root node
substr emit_as (EmitType_e type, ConstNodeRef const &n, bool error_on_excess=true)
 emit starting at the given node
EmitOptions const & options () const noexcept
 get the emit options for this object
void options (EmitOptions opts) noexcept
 set the emit options for this object
void max_depth (id_type max_depth) noexcept
 set the max depth for emitted trees (to prevent a stack overflow)
id_type max_depth () const noexcept
 get the max depth for emitted trees (to prevent a stack overflow)

Detailed Description

template<class Writer>
class c4::yml::Emitter< Writer >

A stateful emitter, for use with a writer such as WriterBuf, WriterFile, or WriterOStream.

Definition at line 133 of file emit.hpp.


The documentation for this class was generated from the following files:
  • /home/docs/checkouts/readthedocs.org/user_builds/rapidyaml/checkouts/v0.14.0/src/c4/yml/emit.hpp
  • /home/docs/checkouts/readthedocs.org/user_builds/rapidyaml/checkouts/v0.14.0/src/c4/yml/emit.def.hpp