rapidyaml  0.7.0
parse and emit YAML, and do it fast
sample::ScopedErrorHandlerExample Struct Reference

Shows how to easily create a scoped error handler. More...

Inheritance diagram for sample::ScopedErrorHandlerExample:
sample::ErrorHandlerExample

Public Member Functions

 ScopedErrorHandlerExample ()
 
 ~ScopedErrorHandlerExample ()
 
ryml::Callbacks callbacks ()
 a helper to create the Callbacks object with the custom error handler More...
 
void on_error (const char *msg, size_t len, ryml::Location loc)
 this is the where the callback implementation goes. More...
 
template<class Fn >
bool check_error_occurs (Fn &&fn) const
 
template<class Fn >
bool check_assertion_occurs (Fn &&fn) const
 
void check_effect (bool committed) const
 

Static Public Member Functions

static void s_error (const char *msg, size_t len, ryml::Location loc, void *this_)
 

Public Attributes

ryml::Callbacks defaults
 

Detailed Description

Shows how to easily create a scoped error handler.

Definition at line 254 of file quickstart.cpp.


The documentation for this struct was generated from the following file: