|
JSON Voorhees
Killer JSON for C++
|
Inheritance diagram for jsonv::member_adapter_builder< T, TMember >:
Collaboration diagram for jsonv::member_adapter_builder< T, TMember >:Public Member Functions | |
| member_adapter_builder (formats_builder *fmt_builder, adapter_builder< T > *adapt_builder, detail::member_adapter_impl< T, TMember > *adapter) | |
| member_adapter_builder & | alternate_name (std::string name) |
| When extracting, also look for this name as a key. | |
| member_adapter_builder & | check_input (std::function< void(const TMember &)> check) |
| member_adapter_builder & | check_input (std::function< bool(const TMember &)> check, std::function< void(const TMember &)> thrower) |
| template<typename TException > | |
| member_adapter_builder & | check_input (std::function< void(const TMember &)> check, const TException &ex) |
| member_adapter_builder & | default_value (std::function< TMember(const extraction_context &, const value &)> create) |
| If the key for this member is not in the object when deserializing, call this function to create a value. | |
| member_adapter_builder & | default_value (TMember value) |
| If the key for this member is not in the object when deserializing, use this value. | |
| member_adapter_builder & | default_on_null (bool on=true) |
Should a kind::null for a key be interpreted as a missing value? | |
| member_adapter_builder & | encode_if (std::function< bool(const serialization_context &, const TMember &)> check) |
| Only encode this member if the check passes. | |
| member_adapter_builder & | since (version ver) |
Only encode this member if the serialization_context::version is greater than or equal to ver. | |
| member_adapter_builder & | until (version ver) |
Only encode this member if the serialization_context::version is less than or equal to ver. | |
| member_adapter_builder & | after (version ver) |
Only encode this member if the serialization_context::version is greater than ver. | |
| member_adapter_builder & | before (version ver) |
Only encode this member if the serialization_context::version is less than ver. | |
Definition at line 820 of file serialization_builder.hpp.
|
inlineexplicit |
Definition at line 825 of file serialization_builder.hpp.
|
inline |
Only encode this member if the serialization_context::version is greater than ver.
Definition at line 921 of file serialization_builder.hpp.
Here is the call graph for this function:
|
inline |
When extracting, also look for this name as a key.
Definition at line 837 of file serialization_builder.hpp.
|
inline |
Only encode this member if the serialization_context::version is less than ver.
Definition at line 931 of file serialization_builder.hpp.
Here is the call graph for this function:
|
inline |
Definition at line 849 of file serialization_builder.hpp.
|
inline |
Definition at line 843 of file serialization_builder.hpp.
|
inline |
Definition at line 862 of file serialization_builder.hpp.
|
inline |
Should a kind::null for a key be interpreted as a missing value?
Definition at line 885 of file serialization_builder.hpp.
|
inline |
If the key for this member is not in the object when deserializing, call this function to create a value.
If a default_value is not specified, the key is required.
Definition at line 870 of file serialization_builder.hpp.
|
inline |
If the key for this member is not in the object when deserializing, use this value.
If a default_value is not specified, the key is required.
Definition at line 879 of file serialization_builder.hpp.
Here is the call graph for this function:
|
inline |
Only encode this member if the check passes.
The final decision to encode is based on all check functions.
Definition at line 894 of file serialization_builder.hpp.
|
inline |
Only encode this member if the serialization_context::version is greater than or equal to ver.
Definition at line 901 of file serialization_builder.hpp.
Here is the call graph for this function:
|
inline |
Only encode this member if the serialization_context::version is less than or equal to ver.
Definition at line 911 of file serialization_builder.hpp.
Here is the call graph for this function: