33#ifndef _QX_SERIALIZE_QJSON_QX_REGISTERED_CLASS_H_
34#define _QX_SERIALIZE_QJSON_QX_REGISTERED_CLASS_H_
47#include <QtCore/qjsonvalue.h>
48#include <QtCore/qjsonobject.h>
49#include <QtCore/qjsonarray.h>
63 static QJsonValue
save(
IxClass * pClass,
const void * pOwner,
const QString & format);
64 static qx_bool load(
const QJsonValue & j,
IxClass * pClass,
void * pOwner,
const QString & format);
74 static QJsonValue
save(
const T & t,
const QString & format)
80 static qx_bool load(
const QJsonValue & j, T & t,
const QString & format)
92#define QX_JSON_SERIALIZE_ONLY_ID "QX_JSON_SERIALIZE_ONLY_ID"
Common interface for all classes registered into QxOrm context.
Concrete class registered into QxOrm context.
qx::IxClass : common interface for all classes registered into QxOrm context
static T * getSingleton()
qx::trait::is_qx_registered<T>::value : return true if T is registered into QxOrm context to provide ...
Internal helper tools for qx::cvt namespace.
Provide global functions to convert any kind of objects to/from QString and QVariant format.
Root namespace for all QxOrm library features.
static qx_bool load(const QJsonValue &j, IxClass *pClass, void *pOwner, const QString &format)
static QJsonValue save(IxClass *pClass, const void *pOwner, const QString &format)
static QJsonValue save(const T &t, const QString &format)
static qx_bool load(const QJsonValue &j, T &t, const QString &format)