|
rapidyaml
0.12.1
parse and emit YAML, and do it fast
|
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. More... | |
| template<class ... WriterArgs> | |
| Emitter (WriterArgs &&...args) | |
| Construct the emitter and its internal Writer state, using default emit options. 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 | options (EmitOptions opts) noexcept |
| set 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... | |
A stateful emitter, for use with a writer such as WriterBuf, WriterFile, or WriterOStream.