|
rapidyaml 0.15.2
parse and emit YAML, and do it fast
|
A YAML/JSON emitter, templated on a writer class such as WriterBuf, WriterFile, or WriterOStream. More...
#include <emitter.hpp>
Public Member Functions | |
| template<class ... WriterArgs> | |
| Emitter (EmitOptions const &opts, WriterArgs &&...args) noexcept | |
| Construct the emitter and its internal Writer state. | |
| void | emit_as (EmitType_e type, Tree const *tree, id_type id=NONE) |
| emit! | |
| EmitOptions const & | options () const noexcept |
| get the emit options for this object | |
A YAML/JSON emitter, templated on a writer class such as WriterBuf, WriterFile, or WriterOStream.
Definition at line 34 of file emitter.hpp.
|
inlinenoexcept |
Construct the emitter and its internal Writer state.
| opts | EmitOptions |
| args | arguments to be forwarded to the constructor of the writer. |
Definition at line 44 of file emitter.hpp.
| void c4::yml::Emitter< Writer >::emit_as | ( | EmitType_e | type, |
| Tree const * | tree, | ||
| id_type | id = NONE ) |
emit!
| type | specify what to emit (YAML or JSON) |
| tree | the tree to emit |
| id | the id of the node to emit |
Definition at line 52 of file emitter.def.hpp.
|
inlinenoexcept |
get the emit options for this object
Definition at line 68 of file emitter.hpp.