|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Polymorphic interface for visitation-based parsing of JSON values. More...
#include <GREM/core/formats/json.hpp>

Public Member Functions | |
| virtual void | visitNull (const SourceLocation &source, Null value) |
| Callback for values of type Null. | |
| virtual void | visitBoolean (const SourceLocation &source, Boolean value) |
| Callback for values of type Boolean. | |
| virtual void | visitString (const SourceLocation &source, StringBase< Allocator > &&value) |
| Callback for values of type String. | |
| virtual void | visitNumber (const SourceLocation &source, Number value) |
| Callback for values of type Number. | |
| virtual void | visitObject (const SourceLocation &source, Parser &parser) |
| Callback for objects. | |
| virtual void | visitArray (const SourceLocation &source, Parser &parser) |
| Callback for arrays. | |
Protected Member Functions | |
| ~ValueVisitor ()=default | |
Polymorphic interface for visitation-based parsing of JSON values.
|
protecteddefault |
|
inlinevirtual |
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 in grem::json::Parser< It, Allocator >::ConcreteValueVisitor< Visitor >, and grem::json::Parser< It, Allocator >::SkipValueVisitor.
|
inlinevirtual |
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 in grem::json::Parser< It, Allocator >::ConcreteValueVisitor< Visitor >, and grem::json::Parser< It, Allocator >::SkipValueVisitor.
|
inlinevirtual |
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 in grem::json::Parser< It, Allocator >::ConcreteValueVisitor< Visitor >, and grem::json::Parser< It, Allocator >::SkipValueVisitor.
|
inlinevirtual |
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 in grem::json::Parser< It, Allocator >::ConcreteValueVisitor< Visitor >, and grem::json::Parser< It, Allocator >::SkipValueVisitor.
|
inlinevirtual |
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 in grem::json::Parser< It, Allocator >::ConcreteValueVisitor< Visitor >, and grem::json::Parser< It, Allocator >::SkipValueVisitor.
|
inlinevirtual |
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 in grem::json::Parser< It, Allocator >::ConcreteValueVisitor< Visitor >, and grem::json::Parser< It, Allocator >::SkipValueVisitor.