GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::json::Parser< It, Allocator >::SkipPropertyVisitor Struct Referencefinal

Implementation of PropertyVisitor that skips over the parsed property and discards the result. More...

#include <GREM/core/formats/json.hpp>

Inheritance diagram for grem::json::Parser< It, Allocator >::SkipPropertyVisitor:

Public Member Functions

void visitProperty (const SourceLocation &source, StringBase< Allocator > &&key, Parser &parser) override
 Callback for each object property.

Additional Inherited Members

Protected Member Functions inherited from grem::json::Parser< It, Allocator >::PropertyVisitor
 ~PropertyVisitor ()=default

Detailed Description

template<typename It, template< typename > typename Allocator = std::allocator>
struct grem::json::Parser< It, Allocator >::SkipPropertyVisitor

Implementation of PropertyVisitor that skips over the parsed property and discards the result.

Member Function Documentation

◆ visitProperty()

template<typename It, template< typename > typename Allocator = std::allocator>
void grem::json::Parser< It, Allocator >::SkipPropertyVisitor::visitProperty ( const SourceLocation & source,
StringBase< Allocator > && key,
Parser & parser )
inlineoverridevirtual

Callback for each object property.

Parameters
sourcelocation of the beginning of the property's value.
keythe property's name string.
parserparser that should be used to parse the property's value.
Warning
Implementations must advance the parser to the end of the encountered value.
Implementations must not advance the parser past the end of the property's value.
Exceptions
json::Erroron invalid input.
anyexception thrown by the concrete implementation.

Implements grem::json::Parser< It, Allocator >::PropertyVisitor.


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