|
| extraction_context () |
| Create a new instance using the default formats (formats::global ). More...
|
|
| extraction_context (jsonv::formats fmt, const jsonv::version &ver=jsonv::version(), jsonv::path p=jsonv::path(), const void *userdata=nullptr) |
| Create a new instance using the given fmt, ver and p. More...
|
|
const jsonv::path & | path () const |
| Get the current path this extraction_context is extracting for. More...
|
|
template<typename T > |
T | extract (const value &from) const |
| Attempt to extract a T from from using the formats associated with this context. More...
|
|
void | extract (const std::type_info &type, const value &from, void *into) const |
|
template<typename T > |
T | extract_sub (const value &from, jsonv::path subpath) const |
| Attempt to extract a T from from.at_path(subpath) using the formats associated with this context. More...
|
|
void | extract_sub (const std::type_info &type, const value &from, jsonv::path subpath, void *into) const |
|
template<typename T > |
T | extract_sub (const value &from, path_element elem) const |
| Attempt to extract a T from from.at_path({elem}) using the formats associated with this context. More...
|
|
| context_base () |
| Create a new instance using the default formats (formats::global ). More...
|
|
| context_base (jsonv::formats fmt, const jsonv::version &ver=jsonv::version(1), const void *userdata=nullptr) |
| Create a new instance using the given fmt, ver and p. More...
|
|
const jsonv::formats & | formats () const |
| Get the formats object backing extraction and encoding. More...
|
|
const jsonv::version | version () const |
| Get the version this extraction_context was created with. More...
|
|
const void * | user_data () const |
| Get a pointer to arbitrary user data. More...
|
|
Definition at line 541 of file serialization.hpp.
jsonv::extraction_context::extraction_context |
( |
| ) |
|
Create a new instance using the given fmt, ver and p.
template<typename T >
T jsonv::extraction_context::extract |
( |
const value & |
from | ) |
const |
|
inline |
Attempt to extract a T
from from using the formats
associated with this context.
- Template Parameters
-
T | is the type to extract from from. It must be movable. |
- Exceptions
-
Definition at line 572 of file serialization.hpp.
template<typename T >
T jsonv::extraction_context::extract_sub |
( |
const value & |
from, |
|
|
jsonv::path |
subpath |
|
) |
| const |
|
inline |
Attempt to extract a T
from from.at_path(subpath)
using the formats
associated with this context.
- Template Parameters
-
T | is the type to extract from from. It must be movable. |
- Exceptions
-
Definition at line 593 of file serialization.hpp.
template<typename T >
T jsonv::extraction_context::extract_sub |
( |
const value & |
from, |
|
|
path_element |
elem |
|
) |
| const |
|
inline |
Attempt to extract a T
from from.at_path({elem})
using the formats
associated with this context.
- Template Parameters
-
T | is the type to extract from from. It must be movable. |
- Exceptions
-
Definition at line 611 of file serialization.hpp.
const jsonv::path& jsonv::extraction_context::path |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: