libdonut
2.3.2
Application framework for cross-platform game development in C++20
|
Polymorphic interface for visitation-based parsing of JSON object properties. More...
#include <donut/json.hpp>
Public Member Functions | |
virtual void | visitProperty (const SourceLocation &source, String &&key, Parser &parser)=0 |
Callback for each object property. More... | |
Protected Member Functions | |
~PropertyVisitor ()=default | |
Polymorphic interface for visitation-based parsing of JSON object properties.
|
protecteddefault |
|
pure virtual |
Callback for each object property.
source | location of the beginning of the property's value. |
key | the property's name string. |
parser | parser that should be used to parse the property's value. |
json::Error | on invalid input. |
any | exception thrown by the concrete implementation. |
Implemented in donut::json::Parser< It >::SkipPropertyVisitor, and donut::json::Parser< It >::ConcretePropertyVisitor< Visitor >.