QxOrm  1.4.5
C++ Object Relational Mapping library

Provide a serialization engine with Qt QJson classes (this feature requires Qt5) More...

#include <QtCore/qjsonvalue.h>
#include <QtCore/qjsonobject.h>
#include <QtCore/qjsonarray.h>
#include <QtCore/qjsondocument.h>
#include <QtCore/qfile.h>
#include <QxCommon/QxBool.h>
#include <QxConvert/QxConvert.h>

Go to the source code of this file.

Namespaces

namespace  qx
 

Root namespace for all QxOrm library features.


namespace  qx::serialization
 

QxOrm library serialization engine based on boost::serialization library.


namespace  qx::serialization::json
 

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


Functions

template<class T >
QByteArray qx::serialization::json::to_byte_array (const T &obj, void *owner=NULL, unsigned int flags=1, const QString &format=QString())
template<class T >
qx_bool qx::serialization::json::from_byte_array (T &obj, const QByteArray &data, unsigned int flags=1, const QString &format=QString())
template<class T >
QString qx::serialization::json::to_string (const T &obj, unsigned int flags=1, const QString &format=QString())
template<class T >
qx_bool qx::serialization::json::from_string (T &obj, const QString &sString, unsigned int flags=1, const QString &format=QString())
template<class T >
qx_bool qx::serialization::json::to_file (const T &obj, const QString &sFileName, unsigned int flags=1, const QString &format=QString())
template<class T >
qx_bool qx::serialization::json::from_file (T &obj, const QString &sFileName, unsigned int flags=1, const QString &format=QString())
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())
template<class T >
qx_bool qx::serialization::json::from_file_compressed (T &obj, const QString &sFileName, unsigned int flags=1, const QString &format=QString())

Detailed Description

Provide a serialization engine with Qt QJson classes (this feature requires Qt5)

Author:
Lionel Marty

Definition in file QxSerializeQJson.h.