Implementation of PropertyVisitor for freestanding classes that implement all or parts of its interface without directly inheriting from it.
More...
#include <donut/json.hpp>
template<typename It>
template<typename Visitor>
struct donut::json::Parser< It >::ConcretePropertyVisitor< Visitor >
Implementation of PropertyVisitor for freestanding classes that implement all or parts of its interface without directly inheriting from it.
- Template Parameters
-
Visitor | freestanding property visitor type to adapt. |
◆ ConcretePropertyVisitor()
template<typename It >
template<typename Visitor >
◆ visitProperty()
template<typename It >
template<typename Visitor >
Callback for each object property.
- Parameters
-
source | location of the beginning of the property's value. |
key | the property's name string. |
parser | parser 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::Error | on invalid input. |
any | exception thrown by the concrete implementation. |
Implements donut::json::Parser< It >::PropertyVisitor.
◆ visitor
template<typename It >
template<typename Visitor >
The documentation for this struct was generated from the following file: