|
mxnet
|
Helper class to read JSON into a class or struct object. More...
#include <json.h>

Public Member Functions | |
| template<typename T > | |
| void | DeclareField (const std::string &key, T *addr) |
| Declare field of type T. More... | |
| template<typename T > | |
| void | DeclareOptionalField (const std::string &key, T *addr) |
| Declare optional field of type T. More... | |
| void | ReadAllFields (JSONReader *reader) |
| Read in all the declared fields. More... | |
Helper class to read JSON into a class or struct object.
|
inline |
Declare field of type T.
| key | the key of the of field. |
| addr | address of the data type. |
| T | the data type to be read, must be STL composition of JSON serializable. |
|
inline |
Declare optional field of type T.
| key | the key of the of field. |
| addr | address of the data type. |
| T | the data type to be read, must be STL composition of JSON serializable. |
|
inline |
Read in all the declared fields.
| reader | the JSONReader to read the json. |
1.8.13