|
| template<class ITER , size_t SIZE> |
| bool | take (ITER &it, char(&dst)[SIZE], const char *key) |
| | overloaded function template for de-serializing from json-string into char-array
|
| |
| template<class ITER , typename INT , typename std::enable_if< std::is_integral< std::decay_t< INT > >::value >::type * = nullptr> |
| bool | take (ITER &it, INT &dst, const char *key) |
| | overloaded function template for de-serializing integral types
|
| |
| template<class ITER , class C , typename std::enable_if< std::is_class< std::decay_t< C > >::value >::type * = nullptr> |
| bool | take (ITER &it, C &dst, const char *key) |
| | overloaded function template for de-serializing object types
|
| |
| template<class ITER , typename INT , size_t SIZE, typename std::enable_if< std::is_integral< std::decay_t< INT > >::value >::type * = nullptr> |
| bool | take (ITER &it, INT(&dst)[SIZE], const char *key) |
| | overloaded function template for de-serializing an array integral type values
|
| |
| template<class ITER , class C , size_t SIZE, typename std::enable_if< std::is_class< std::decay_t< C > >::value >::type * = nullptr> |
| bool | take (ITER &it, C(&dst)[SIZE], const char *key) |
| | overloaded function template for de-serializing an array of struct type objects
|
| |
|
template<class ITER , class C , size_t SIZE, typename std::enable_if< std::is_class< std::decay_t< C > >::value >::type * = nullptr> |
| bool | take (ITER &it, std::array< C, SIZE > &dst, const char *key) |
| |
| template<class ITER > |
| bool | take_one_of (ITER &it) |
| | function template used as terminator in variadic template
|
| |
| template<class ITER , typename T , typename ... Args> |
| bool | take_one_of (ITER &it, T pair, Args ... args) |
| | variadic function template for de-serializing data of current JSMN iterator into the matching pair from our args-list
|
| |
| template<class ITER , typename T , typename ... Args> |
| bool | deserialize_object (ITER &it, T pair, Args ... args) |
| | variadic function template for de-serializing all members of an object in one call
|
| |
de-serialize objects from JSON using JSMN library
template<class ITER , typename INT , typename std::enable_if< std::is_integral< std::decay_t< INT > >::value >::type * = nullptr>
| bool jsoneat::from_json::jsmn::take |
( |
ITER & |
it, |
|
|
INT & |
dst, |
|
|
const char * |
key |
|
) |
| |
overloaded function template for de-serializing integral types
overloaded function template for de-serializing floating point types
- Template Parameters
-
| ITER | JSMN iterator type |
| SIZE | char array size |
- Parameters
-
| it | JSMN iterator object reference |
| dst | data-member reference |
| key | json key to match against key name in iterator. or nullptr, for any key (?) |
- Returns
- true if key has matched and
template<class ITER , typename INT , size_t SIZE, typename std::enable_if< std::is_integral< std::decay_t< INT > >::value >::type * = nullptr>
| bool jsoneat::from_json::jsmn::take |
( |
ITER & |
it, |
|
|
INT(&) |
dst[SIZE], |
|
|
const char * |
key |
|
) |
| |
overloaded function template for de-serializing an array integral type values
overloaded function template for de-serializing an array floating point type values
- Template Parameters
-
| ITER | JSMN iterator type |
| INT | type of array members |
| SIZE | array length |
- Parameters
-
| it | JSMN iterator object reference |
| dst | data-member reference |
| key | json key to match against key name in iterator. or nullptr, for any key (?) |
- Returns
- true if key has matched and