|
template<JSONNAMETYPE NewName> |
using | with_name = json_key_value< NewName, Container, JsonValueType, JsonKeyType, Constructor, Nullable > |
|
using | without_name = json_base::json_key_value< Container, JsonValueType, JsonKeyType, Constructor, Nullable > |
|
using | base_type = json_details::unwrap_type< Container, Nullable > |
|
using | constructor_t = json_details::json_class_constructor_t< base_type, Constructor > |
|
using | i_am_a_json_type = void |
|
using | json_element_t = json_details::json_deduced_type< JsonValueType > |
|
using | json_key_t = json_details::json_deduced_type< JsonKeyType > |
|
using | parse_to_t = typename json_details::construction_result< Nullable !=JsonNullable::MustExist, Constructor, std::pair< typename json_key_t::parse_to_t const, typename json_element_t::parse_to_t > const *, std::pair< typename json_key_t::parse_to_t const, typename json_element_t::parse_to_t > const * >::type |
|
template<JSONNAMETYPE NewName> |
using | with_name = daw::json::json_key_value< NewName, Container, JsonValueType, JsonKeyType, Constructor, Nullable > |
|
using | without_name = json_key_value |
|
template<JSONNAMETYPE Name, typename Container, typename JsonValueType, typename JsonKeyType, typename Constructor, JsonNullable Nullable>
struct daw::json::DAW_JSON_VER::json_key_value< Name, Container, JsonValueType, JsonKeyType, Constructor, Nullable >
Map a KV type json class { "Key StringRaw": ValueType, ... } to a c++ class. Keys are Always string like and the destination needs to be constructable with a pointer, size
- Template Parameters
-
Name | name of JSON member to link to |
Container | type to put values in |
JsonValueType | Json type of value in kv pair( e.g. json_number, json_string, ... ). It also supports basic types like numbers, bool, and mapped classes and enums(mapped to numbers) |
JsonKeyType | type of key in kv pair. As with value it supports basic types too |
Constructor | A callable used to make Container, default will use the Containers constructor. Both normal and aggregate are supported |
Nullable | Can the member be missing or have a null value |