JSON Voorhees
Killer JSON for C++
Loading...
Searching...
No Matches
jsonv::adapter Class Reference

An adapter is both a deserializer and a serializer. More...

#include <jsonv/serialization/adapter.hpp>

+ Inheritance diagram for jsonv::adapter:
+ Collaboration diagram for jsonv::adapter:

Additional Inherited Members

- Public Member Functions inherited from jsonv::deserializer
virtual const std::type_info & get_type () const noexcept=0
 Get the run-time type this deserializer knows how to deserialize.
 
virtual std::expected< void, ast_node_type > deserialize (deserialization_context &context, reader &from, void *into) const =0
 Deserialize the type from a reader into a region of memory.
 
- Public Member Functions inherited from jsonv::serializer
virtual const std::type_info & get_type () const noexcept=0
 Get the run-time type this serializer knows how to serialize.
 
virtual void serialize (const serialization_context &context, const void *from, writer &to) const =0
 Write the value in the given region of memory from into to.
 

Detailed Description

An adapter is both a deserializer and a serializer.

It is made with the idea that for most types, you want to both encode and decode JSON.

Definition at line 24 of file adapter.hpp.


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