JSON Voorhees
Killer JSON for C++
|
Public Member Functions | |
virtual const std::type_info & | get_type () const override |
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 override |
Extract a the type from a value into a region of memory. More... | |
Protected Member Functions | |
template<typename U > | |
auto | extract_impl (const extraction_context &context, const value &from, void *into) const -> decltype(U(from, context), void()) |
template<typename U , typename = void> | |
auto | extract_impl (const extraction_context &, const value &from, void *into) const -> decltype(U(from), void()) |
Definition at line 34 of file serialization_util.hpp.
|
inlineoverridevirtual |
Extract a the type from a value
into a region of memory.
context | Extra information to help you decode sub-objects, such as looking up other formats . It also tracks your path in the decoding heirarchy, so any exceptions thrown will have path information in the error message. |
from | The JSON value to extract something from. |
into | The region of memory to create the extracted object in. There will always be enough room to create your object and the alignment of the pointer should be correct (assuming a working alignof implementation). |
Implements jsonv::extractor.
Definition at line 43 of file serialization_util.hpp.
|
inlineoverridevirtual |
Get the run-time type this extractor
knows how to extract.
Once this extractor
is registered with a formats
, it is not allowed to change.
Implements jsonv::extractor.
Definition at line 38 of file serialization_util.hpp.