libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Member Functions | List of all members
donut::json::Parser< It >::SkipPropertyVisitor Struct Referencefinal

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

#include <donut/json.hpp>

Inheritance diagram for donut::json::Parser< It >::SkipPropertyVisitor:
donut::json::Parser< It >::PropertyVisitor

Public Member Functions

void visitProperty (const SourceLocation &source, String &&key, Parser &parser) override
 Callback for each object property. More...
 

Additional Inherited Members

- Protected Member Functions inherited from donut::json::Parser< It >::PropertyVisitor
 ~PropertyVisitor ()=default
 

Detailed Description

template<typename It>
struct donut::json::Parser< It >::SkipPropertyVisitor

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

Member Function Documentation

◆ visitProperty()

template<typename It >
void donut::json::Parser< It >::SkipPropertyVisitor::visitProperty ( const SourceLocation source,
String &&  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 donut::json::Parser< It >::PropertyVisitor.


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