#include "../../../dependencies/jsoncpp/include/json.h"
#include <fstream>
#include <vector>
Go to the source code of this file.
|
template<typename T > |
Json::Value | xmm::array2json (T const *a, unsigned int n) |
| Writes a C-style array to a Json Value. More...
|
|
template<typename T > |
void | xmm::json2array (Json::Value const &root, T *a, unsigned int n) |
| Reads a C-style array from a Json Value. More...
|
|
template<> |
void | xmm::json2array (Json::Value const &root, float *a, unsigned int n) |
|
template<> |
void | xmm::json2array (Json::Value const &root, double *a, unsigned int n) |
|
template<> |
void | xmm::json2array (Json::Value const &root, bool *a, unsigned int n) |
|
template<> |
void | xmm::json2array (Json::Value const &root, std::string *a, unsigned int n) |
|
template<typename T > |
Json::Value | xmm::vector2json (std::vector< T > const &a) |
| Writes a vector to a Json Value. More...
|
|
template<typename T > |
void | xmm::json2vector (Json::Value const &root, std::vector< T > &a, unsigned int n) |
| Reads a vector from a Json Value. More...
|
|
template<> |
void | xmm::json2vector (Json::Value const &root, std::vector< float > &a, unsigned int n) |
|
template<> |
void | xmm::json2vector (Json::Value const &root, std::vector< double > &a, unsigned int n) |
|
template<> |
void | xmm::json2vector (Json::Value const &root, std::vector< bool > &a, unsigned int n) |
|
template<> |
void | xmm::json2vector (Json::Value const &root, std::vector< std::string > &a, unsigned int n) |
|