#include <from-json-visitor.hpp>
|
static void | checkType (json_object *object, json_type type) |
|
template<typename T , typename std::enable_if< std::is_integral< T >::value, int >::type = 0> |
static void | fromJsonObject (json_object *object, T &value) |
|
static void | fromJsonObject (json_object *object, bool &value) |
|
static void | fromJsonObject (json_object *object, double &value) |
|
static void | fromJsonObject (json_object *object, std::string &value) |
|
static void | fromJsonObject (json_object *object, char *&value) |
|
template<typename T > |
static void | fromJsonObject (json_object *object, std::vector< T > &values) |
|
template<typename T , std::size_t N> |
static void | fromJsonObject (json_object *object, std::array< T, N > &values) |
|
template<typename V > |
static void | fromJsonObject (json_object *object, std::map< std::string, V > &values) |
|
template<typename T , typename std::enable_if< isLikeTuple< T >::value, int >::type = 0> |
static void | fromJsonObject (json_object *object, T &values) |
|
template<typename T , typename std::enable_if< std::is_enum< T >::value, int >::type = 0> |
static void | fromJsonObject (json_object *object, T &value) |
|
template<typename T , typename std::enable_if< isVisitable< T >::value, int >::type = 0> |
static void | fromJsonObject (json_object *object, T &value) |
|
cargo::FromJsonVisitor::FromJsonVisitor |
( |
const std::string & |
jsonString | ) |
|
|
inlineexplicit |
cargo::FromJsonVisitor::~FromJsonVisitor |
( |
| ) |
|
|
inline |
cargo::FromJsonVisitor::FromJsonVisitor |
( |
json_object * |
object | ) |
|
|
inlineexplicitprivate |
static void cargo::FromJsonVisitor::checkType |
( |
json_object * |
object, |
|
|
json_type |
type |
|
) |
| |
|
inlinestaticprivate |
template<typename T , typename std::enable_if< std::is_integral< T >::value, int >::type = 0>
static void cargo::FromJsonVisitor::fromJsonObject |
( |
json_object * |
object, |
|
|
T & |
value |
|
) |
| |
|
inlinestaticprivate |
static void cargo::FromJsonVisitor::fromJsonObject |
( |
json_object * |
object, |
|
|
bool & |
value |
|
) |
| |
|
inlinestaticprivate |
static void cargo::FromJsonVisitor::fromJsonObject |
( |
json_object * |
object, |
|
|
double & |
value |
|
) |
| |
|
inlinestaticprivate |
static void cargo::FromJsonVisitor::fromJsonObject |
( |
json_object * |
object, |
|
|
std::string & |
value |
|
) |
| |
|
inlinestaticprivate |
static void cargo::FromJsonVisitor::fromJsonObject |
( |
json_object * |
object, |
|
|
char *& |
value |
|
) |
| |
|
inlinestaticprivate |
template<typename T >
static void cargo::FromJsonVisitor::fromJsonObject |
( |
json_object * |
object, |
|
|
std::vector< T > & |
values |
|
) |
| |
|
inlinestaticprivate |
template<typename T , std::size_t N>
static void cargo::FromJsonVisitor::fromJsonObject |
( |
json_object * |
object, |
|
|
std::array< T, N > & |
values |
|
) |
| |
|
inlinestaticprivate |
template<typename V >
static void cargo::FromJsonVisitor::fromJsonObject |
( |
json_object * |
object, |
|
|
std::map< std::string, V > & |
values |
|
) |
| |
|
inlinestaticprivate |
template<typename T , typename std::enable_if< isLikeTuple< T >::value, int >::type = 0>
static void cargo::FromJsonVisitor::fromJsonObject |
( |
json_object * |
object, |
|
|
T & |
values |
|
) |
| |
|
inlinestaticprivate |
template<typename T , typename std::enable_if< std::is_enum< T >::value, int >::type = 0>
static void cargo::FromJsonVisitor::fromJsonObject |
( |
json_object * |
object, |
|
|
T & |
value |
|
) |
| |
|
inlinestaticprivate |
template<typename T , typename std::enable_if< isVisitable< T >::value, int >::type = 0>
static void cargo::FromJsonVisitor::fromJsonObject |
( |
json_object * |
object, |
|
|
T & |
value |
|
) |
| |
|
inlinestaticprivate |
template<typename T >
void cargo::FromJsonVisitor::visit |
( |
const std::string & |
name, |
|
|
T & |
value |
|
) |
| |
|
inline |
json_object* cargo::FromJsonVisitor::mObject |
|
private |
The documentation for this class was generated from the following file: