XMM - Probabilistic Models for Motion Recognition and Mapping

Classes | Namespaces | Functions
xmmJson.hpp File Reference
#include "../../../dependencies/jsoncpp/include/json.h"
#include <fstream>
#include <vector>
Include dependency graph for xmmJson.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  xmm::Writable
 Abstract class for handling JSON + File I/O. More...
 
class  xmm::JsonException
 Exception class for handling JSON parsing errors. More...
 

Namespaces

 xmm
 

Functions

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)