rapidyaml  0.7.2
parse and emit YAML, and do it fast
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>

Inheritance diagram for c4::yml::Emitter< Writer >:

Public Member Functions

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

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 130 of file emit.hpp.


The documentation for this class was generated from the following files: