|
JSON Voorhees
Killer JSON for C++
|
Inheritance diagram for jsonv::serializer_for< T >:Public Member Functions | |
| virtual const std::type_info & | get_type () const override |
Get the run-time type this serialize knows how to encode. More... | |
| virtual value | to_json (const serialization_context &context, const void *from) const override |
Create a value from the value in the given region of memory. More... | |
Protected Member Functions | |
| virtual value | to_json (const serialization_context &context, const T &from) const =0 |
Definition at line 153 of file serialization_util.hpp.
|
inlineoverridevirtual |
Get the run-time type this serialize knows how to encode.
Once this serializer is registered with a formats, it is not allowed to change.
Implements jsonv::serializer.
Definition at line 157 of file serialization_util.hpp.
|
inlineoverridevirtual |
Create a value from the value in the given region of memory.
| context | Extra information to help you encode sub-objects for your type, such as the ability to find other formats. It also tracks the progression of types in the encoding heirarchy, so any exceptions thrown will have type information in the error message. |
| from | The region of memory that represents the C++ value to convert to JSON. The pointer comes as the result of a static_cast<void*>, so performing a static_cast back to your type is okay. |
Implements jsonv::serializer.
Definition at line 162 of file serialization_util.hpp.