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

Implementation of PropertyVisitor for freestanding classes that implement all or parts of its interface without directly inheriting from it. More...

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

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

Public Member Functions

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

Public Attributes

Visitor visitor

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>
template<typename Visitor>
struct grem::json::Parser< It, Allocator >::ConcretePropertyVisitor< Visitor >

Implementation of PropertyVisitor for freestanding classes that implement all or parts of its interface without directly inheriting from it.

Template Parameters
Visitorfreestanding property visitor type to adapt.

Constructor & Destructor Documentation

◆ ConcretePropertyVisitor()

template<typename It, template< typename > typename Allocator = std::allocator>
template<typename Visitor>
grem::json::Parser< It, Allocator >::ConcretePropertyVisitor< Visitor >::ConcretePropertyVisitor ( Visitor visitor)
inline

Member Function Documentation

◆ visitProperty()

template<typename It, template< typename > typename Allocator = std::allocator>
template<typename Visitor>
void grem::json::Parser< It, Allocator >::ConcretePropertyVisitor< Visitor >::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.

Member Data Documentation

◆ visitor

template<typename It, template< typename > typename Allocator = std::allocator>
template<typename Visitor>
Visitor grem::json::Parser< It, Allocator >::ConcretePropertyVisitor< Visitor >::visitor

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