libdonut
2.3.2
Application framework for cross-platform game development in C++20
|
Implementation of ValueVisitor for freestanding classes that implement all or parts of its interface without directly inheriting from it. More...
#include <donut/json.hpp>
Public Member Functions | |
ConcreteValueVisitor (Visitor visitor) | |
void | visitNull (const SourceLocation &source, Null value) override |
Callback for values of type Null. More... | |
void | visitBoolean (const SourceLocation &source, Boolean value) override |
Callback for values of type Boolean. More... | |
void | visitString (const SourceLocation &source, String &&value) override |
Callback for values of type String. More... | |
void | visitNumber (const SourceLocation &source, Number value) override |
Callback for values of type Number. More... | |
void | visitObject (const SourceLocation &source, Parser &parser) override |
Callback for objects. More... | |
void | visitArray (const SourceLocation &source, Parser &parser) override |
Callback for arrays. More... | |
Public Attributes | |
Visitor | visitor |
Additional Inherited Members | |
Protected Member Functions inherited from donut::json::Parser< It >::ValueVisitor | |
~ValueVisitor ()=default | |
Implementation of ValueVisitor for freestanding classes that implement all or parts of its interface without directly inheriting from it.
Visitor | freestanding value visitor type to adapt. |
|
inline |
|
inlineoverridevirtual |
Callback for values of type Null.
source | location of the parsed value. |
value | parsed value. |
json::Error | on invalid input. |
any | exception thrown by the concrete implementation. |
Reimplemented from donut::json::Parser< It >::ValueVisitor.
|
inlineoverridevirtual |
Callback for values of type Boolean.
source | location of the parsed value. |
value | parsed value. |
json::Error | on invalid input. |
any | exception thrown by the concrete implementation. |
Reimplemented from donut::json::Parser< It >::ValueVisitor.
|
inlineoverridevirtual |
Callback for values of type String.
source | location of the parsed value. |
value | parsed value. |
json::Error | on invalid input. |
any | exception thrown by the concrete implementation. |
Reimplemented from donut::json::Parser< It >::ValueVisitor.
|
inlineoverridevirtual |
Callback for values of type Number.
source | location of the parsed value. |
value | parsed value. |
json::Error | on invalid input. |
any | exception thrown by the concrete implementation. |
Reimplemented from donut::json::Parser< It >::ValueVisitor.
|
inlineoverridevirtual |
Callback for objects.
source | location of the beginning of the encountered object. |
parser | parser that should be used to parse the object. |
json::Error | on invalid input. |
any | exception thrown by the concrete implementation. |
Reimplemented from donut::json::Parser< It >::ValueVisitor.
|
inlineoverridevirtual |
Callback for arrays.
source | location of the beginning of the encountered array. |
parser | parser that should be used to parse the array. |
json::Error | on invalid input. |
any | exception thrown by the concrete implementation. |
Reimplemented from donut::json::Parser< It >::ValueVisitor.
Visitor donut::json::Parser< It >::ConcreteValueVisitor< Visitor >::visitor |