QxOrm  1.4.5
C++ Object Relational Mapping library

serialize a class registered into QxOrm context using Qt QJson serialization engine (this feature requires Qt5) More...

Functions

template<class T >
QByteArray to_byte_array (const T &obj, void *owner=NULL, unsigned int flags=1, const QString &format=QString())
template<class T >
qx_bool from_byte_array (T &obj, const QByteArray &data, unsigned int flags=1, const QString &format=QString())
template<class T >
QString to_string (const T &obj, unsigned int flags=1, const QString &format=QString())
template<class T >
qx_bool from_string (T &obj, const QString &sString, unsigned int flags=1, const QString &format=QString())
template<class T >
qx_bool to_file (const T &obj, const QString &sFileName, unsigned int flags=1, const QString &format=QString())
template<class T >
qx_bool from_file (T &obj, const QString &sFileName, unsigned int flags=1, const QString &format=QString())
template<class T >
qx_bool to_file_compressed (const T &obj, const QString &sFileName, unsigned int flags=1, int iCompressionLevel=-1, const QString &format=QString())
template<class T >
qx_bool from_file_compressed (T &obj, const QString &sFileName, unsigned int flags=1, const QString &format=QString())

Detailed Description

serialize a class registered into QxOrm context using Qt QJson serialization engine (this feature requires Qt5)


Function Documentation

template<class T >
qx_bool qx::serialization::json::from_byte_array ( T &  obj,
const QByteArray &  data,
unsigned int  flags = 1,
const QString &  format = QString() 
) [inline]

Definition at line 76 of file QxSerializeQJson.h.

template<class T >
qx_bool qx::serialization::json::from_file ( T &  obj,
const QString &  sFileName,
unsigned int  flags = 1,
const QString &  format = QString() 
) [inline]

Definition at line 107 of file QxSerializeQJson.h.

template<class T >
qx_bool qx::serialization::json::from_file_compressed ( T &  obj,
const QString &  sFileName,
unsigned int  flags = 1,
const QString &  format = QString() 
) [inline]

Definition at line 129 of file QxSerializeQJson.h.

template<class T >
qx_bool qx::serialization::json::from_string ( T &  obj,
const QString &  sString,
unsigned int  flags = 1,
const QString &  format = QString() 
) [inline]

Definition at line 92 of file QxSerializeQJson.h.

template<class T >
QByteArray qx::serialization::json::to_byte_array ( const T &  obj,
void *  owner = NULL,
unsigned int  flags = 1,
const QString &  format = QString() 
) [inline]

Definition at line 67 of file QxSerializeQJson.h.

template<class T >
qx_bool qx::serialization::json::to_file ( const T &  obj,
const QString &  sFileName,
unsigned int  flags = 1,
const QString &  format = QString() 
) [inline]

Definition at line 96 of file QxSerializeQJson.h.

template<class T >
qx_bool qx::serialization::json::to_file_compressed ( const T &  obj,
const QString &  sFileName,
unsigned int  flags = 1,
int  iCompressionLevel = -1,
const QString &  format = QString() 
) [inline]

Definition at line 117 of file QxSerializeQJson.h.

template<class T >
QString qx::serialization::json::to_string ( const T &  obj,
unsigned int  flags = 1,
const QString &  format = QString() 
) [inline]

Definition at line 88 of file QxSerializeQJson.h.