JSON Voorhees
Killer JSON for C++
jsonv::adapter Class Reference

An adapter is both an extractor and a serializer. More...

#include <jsonv/serialization.hpp>

+ Inheritance diagram for jsonv::adapter:

Additional Inherited Members

- Public Member Functions inherited from jsonv::extractor
virtual const std::type_info & get_type () const =0
 Get the run-time type this extractor knows how to extract. More...
 
virtual void extract (const extraction_context &context, const value &from, void *into) const =0
 Extract a the type from a value into a region of memory. More...
 
- Public Member Functions inherited from jsonv::serializer
virtual const std::type_info & get_type () const =0
 Get the run-time type this serialize knows how to encode. More...
 
virtual value to_json (const serialization_context &context, const void *from) const =0
 Create a value from the value in the given region of memory. More...
 

Detailed Description

An adapter is both an extractor and a serializer.

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

Definition at line 262 of file serialization.hpp.


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