Multilevel Deduplication Engine (MDE)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
mde::slz::DefaultValueSerializer< T > Struct Template Reference

Default serialization behavior. If the type of the property in MDE is something that can be directly serialized to JSON (like numbers, strings), or has a serializer routine already written for it (see nlohmann/json documentation), this struct will do so. More...

#include <mde_serialization.hpp>

Inheritance diagram for mde::slz::DefaultValueSerializer< T >:
Inheritance graph
[legend]
Collaboration diagram for mde::slz::DefaultValueSerializer< T >:
Collaboration graph
[legend]

Public Member Functions

JSON save (const T &val)
 
load (const JSON &j)
 
- Public Member Functions inherited from mde::slz::ValueSerializer< T >
JSON save (const T &val)
 
load (const JSON &j)
 

Detailed Description

template<typename T>
struct mde::slz::DefaultValueSerializer< T >

Default serialization behavior. If the type of the property in MDE is something that can be directly serialized to JSON (like numbers, strings), or has a serializer routine already written for it (see nlohmann/json documentation), this struct will do so.

Template Parameters
Tthe value to serialize.

Definition at line 47 of file mde_serialization.hpp.

Member Function Documentation

◆ load()

template<typename T >
T mde::slz::DefaultValueSerializer< T >::load ( const JSON j)
inline

Definition at line 52 of file mde_serialization.hpp.

◆ save()

template<typename T >
JSON mde::slz::DefaultValueSerializer< T >::save ( const T &  val)
inline

Definition at line 48 of file mde_serialization.hpp.


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