libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Member Functions | List of all members
donut::json::Deserializer< T > Struct Template Reference

Base template to specialize in order to implement JSON deserialization for a specific type. More...

#include <donut/json.hpp>

Public Member Functions

void deserialize (Reader &reader, T &value)
 

Detailed Description

template<typename T>
struct donut::json::Deserializer< T >

Base template to specialize in order to implement JSON deserialization for a specific type.

The specialization should have a member function with the following signature:

void deserialize(Reader& reader, T& value)
void deserialize(Reader &reader, T &value)
Definition: json.hpp:3599

where T is the specialized template type parameter.

The implementation should read the input using the provided Reader.

Template Parameters
Tthe type that this deserializer deserializes.

Member Function Documentation

◆ deserialize()

template<typename T >
void donut::json::Deserializer< T >::deserialize ( Reader reader,
T &  value 
)
inline

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