QxOrm  1.5.0
C++ Object Relational Mapping library

Used when _QX_ENABLE_BOOST_SERIALIZATION compilation option is not defined to provide serialization engine with Qt QDataStream class. More...

#include <exception>
#include <QtCore/qdatastream.h>
#include <QtCore/qfile.h>
#include <QxCommon/QxBool.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::qt
 

serialize a class registered into QxOrm context using Qt QDataStream serialization engine


Functions

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

Detailed Description

Used when _QX_ENABLE_BOOST_SERIALIZATION compilation option is not defined to provide serialization engine with Qt QDataStream class.

Author:
Lionel Marty

Definition in file QxSerializeQDataStream.h.