Go to the source code of this file.
◆ BT_JSON_CONVERTER
#define BT_JSON_CONVERTER |
( |
|
Type, |
|
|
|
value |
|
) |
| |
Value: template <class AddField> \
void _JsonTypeDefinition(Type&, AddField&); \
\
{ \
auto
op = [&js](
const char* name,
auto* val) { js[name] = *val; }; \
_JsonTypeDefinition(
const_cast<Type&
>(
p),
op); \
js["__type"] = #Type; \
} \
\
{ \
auto
op = [&js](
const char* name,
auto* v) { js.at(name).get_to(*v); }; \
_JsonTypeDefinition(
p,
op); \
} \
\
template <class AddField> \
inline
void _JsonTypeDefinition(Type&
value, AddField& add_field)
Definition at line 195 of file json_export.h.