|
rapidyaml
0.11.0
parse and emit YAML, and do it fast
|
an example error handler, required for some of the quickstart examples. More...
Public Member Functions | |
| ErrorHandlerExample () | |
| template<class Fn > | |
| bool | check_error_occurs (Fn &&fn) |
| checking that an error occurs while calling fn More... | |
| template<class Fn > | |
| bool | check_assertion_occurs (Fn &&fn) |
| checking that an assertion occurs while calling fn. More... | |
| void | check_enabled () const |
| test that this handler is currently set More... | |
| void | check_disabled () const |
| test that this handler is currently not set More... | |
| ryml::Callbacks | callbacks () |
| a helper to create the Callbacks object for the custom error handler More... | |
| void | on_error_basic (ryml::csubstr msg, ryml::ErrorDataBasic const &errdata) |
| this is where the callback implementation goes. More... | |
| void | on_error_parse (ryml::csubstr msg, ryml::ErrorDataParse const &errdata) |
| this is where the callback implementation goes. More... | |
| void | on_error_visit (ryml::csubstr msg, ryml::ErrorDataVisit const &errdata) |
| this is where the callback implementation goes. More... | |
Static Public Member Functions | |
| static void | s_error_basic (ryml::csubstr msg, ryml::ErrorDataBasic const &errdata, void *this_) |
| trampoline function to call the object's method More... | |
| static void | s_error_parse (ryml::csubstr msg, ryml::ErrorDataParse const &errdata, void *this_) |
| trampoline function to call the object's method More... | |
| static void | s_error_visit (ryml::csubstr msg, ryml::ErrorDataVisit const &errdata, void *this_) |
| trampoline function to call the object's method More... | |
Public Attributes | |
| ryml::Callbacks | defaults |
| std::string | saved_msg_short |
| std::string | saved_msg_full |
| std::string | saved_msg_full_with_context |
| ryml::Location | saved_basic_loc |
| ryml::Location | saved_parse_loc |
| ryml::Tree const * | saved_visit_tree |
| ryml::id_type | saved_visit_id |
an example error handler, required for some of the quickstart examples.
Definition at line 223 of file quickstart.cpp.
|
inline |
Definition at line 225 of file quickstart.cpp.
| ryml::Callbacks ErrorHandlerExample::defaults |
Definition at line 226 of file quickstart.cpp.
| std::string ErrorHandlerExample::saved_msg_short |
Definition at line 248 of file quickstart.cpp.
| std::string ErrorHandlerExample::saved_msg_full |
Definition at line 249 of file quickstart.cpp.
| std::string ErrorHandlerExample::saved_msg_full_with_context |
Definition at line 250 of file quickstart.cpp.
| ryml::Location ErrorHandlerExample::saved_basic_loc |
Definition at line 251 of file quickstart.cpp.
| ryml::Location ErrorHandlerExample::saved_parse_loc |
Definition at line 252 of file quickstart.cpp.
| ryml::Tree const* ErrorHandlerExample::saved_visit_tree |
Definition at line 253 of file quickstart.cpp.
| ryml::id_type ErrorHandlerExample::saved_visit_id |
Definition at line 254 of file quickstart.cpp.