QxOrm 1.4.9
C++ Object Relational Mapping library
Loading...
Searching...
No Matches
QxSerializeMacro.h File Reference

Go to the source code of this file.

Macros

#define QX_ARCHIVE_NAMESPACE_FCT_IMPL(T, INPUT, OUTPUT)
 

Macro Definition Documentation

◆ QX_ARCHIVE_NAMESPACE_FCT_IMPL

#define QX_ARCHIVE_NAMESPACE_FCT_IMPL ( T,
INPUT,
OUTPUT )
Value:
\
template <class T> \
inline qx_bool to_file(const T & obj, const QString & sFileName, unsigned int flags = boost::archive::no_header) { return qx::QxArchive_ToFile<T, INPUT, OUTPUT>::toFile(obj, sFileName, flags); }; \
\
template <class T> \
inline qx_bool from_file(T & obj, const QString & sFileName, unsigned int flags = boost::archive::no_header) { return qx::QxArchive_FromFile<T, INPUT, OUTPUT>::fromFile(obj, sFileName, flags); }; \
\
template <class T> \
inline qx_bool to_file_compressed(const T & obj, const QString & sFileName, unsigned int flags = boost::archive::no_header, int iCompressionLevel = -1) { return qx::QxArchive_ToFileCompressed<T, INPUT, OUTPUT>::toFileCompressed(obj, sFileName, flags, iCompressionLevel); }; \
\
template <class T> \
inline qx_bool from_file_compressed(T & obj, const QString & sFileName, unsigned int flags = boost::archive::no_header) { return qx::QxArchive_FromFileCompressed<T, INPUT, OUTPUT>::fromFileCompressed(obj, sFileName, flags); }; \
\
template <class T> \
inline QString to_string(const T & obj, unsigned int flags = boost::archive::no_header) { return qx::QxArchive_ToString<T, INPUT, OUTPUT>::toString(obj, flags); }; \
\
template <class T> \
inline qx_bool from_string(T & obj, const QString & sString, unsigned int flags = boost::archive::no_header) { return qx::QxArchive_FromString<T, INPUT, OUTPUT>::fromString(obj, sString, flags); }; \
\
template <class T> \
inline QByteArray to_byte_array(const T & obj, typename qx::trait::archive_wide_traits< INPUT >::type_string * owner = NULL, unsigned int flags = boost::archive::no_header) { return qx::QxArchive_ToByteArray<T, INPUT, OUTPUT>::toByteArray(obj, owner, flags); }; \
\
template <class T> \
inline qx_bool from_byte_array(T & obj, const QByteArray & data, unsigned int flags = boost::archive::no_header) { return qx::QxArchive_FromByteArray<T, INPUT, OUTPUT>::fromByteArray(obj, data, flags); }; \
\
static qx_bool fromByteArray(T &obj, const QByteArray &data, unsigned int flags=boost::archive::no_header)
static qx_bool fromFileCompressed(T &obj, const QString &sFileName, unsigned int flags=boost::archive::no_header)
static qx_bool fromFile(T &obj, const QString &sFileName, unsigned int flags=boost::archive::no_header)
static qx_bool fromString(T &obj, const QString &sString, unsigned int flags=boost::archive::no_header)
static QByteArray toByteArray(const T &obj, type_string *owner=NULL, unsigned int flags=boost::archive::no_header)
static qx_bool toFileCompressed(const T &obj, const QString &sFileName, unsigned int flags=boost::archive::no_header, int iCompressionLevel=-1)
static qx_bool toFile(const T &obj, const QString &sFileName, unsigned int flags=boost::archive::no_header)
static QString toString(const T &obj, unsigned int flags=boost::archive::no_header)
qx_bool : boolean type with code and description message when an error occured
Definition QxBool.h:71
std::conditional< is_wide, std::wstring, std::string >::type type_string
QString to_string(const T &t, const QString &format=QString(), int index=-1, qx::cvt::context::ctx_type ctx=qx::cvt::context::e_no_context)
Definition QxConvert.h:77
qx_bool from_string(const QString &s, T &t, const QString &format=QString(), int index=-1, qx::cvt::context::ctx_type ctx=qx::cvt::context::e_no_context)
Definition QxConvert.h:78
qx_bool from_file_compressed(T &obj, const QString &sFileName, unsigned int flags=1)
qx_bool from_byte_array(T &obj, const QByteArray &data, unsigned int flags=1)
QByteArray to_byte_array(const T &obj, void *owner=NULL, unsigned int flags=1)
qx_bool to_file_compressed(const T &obj, const QString &sFileName, unsigned int flags=1, int iCompressionLevel=-1)

Definition at line 40 of file QxSerializeMacro.h.