33#ifndef _QX_SERIALIZE_QJSON_QX_DAO_POINTER_H_
34#define _QX_SERIALIZE_QJSON_QX_DAO_POINTER_H_
47#include <QtCore/qjsonvalue.h>
48#include <QtCore/qjsonobject.h>
49#include <QtCore/qjsonarray.h>
68 return QJsonValue(arr);
78 if (! j.isArray()) {
return qx_bool(
true); }
79 QJsonArray arr = j.toArray();
80 if (arr.count() != 2) {
return qx_bool(
true); }
81 T * ptr = NULL; T * original = NULL;
qx::cvt : namespace to provide global functions to convert any kind of objects to/from QString and QV...
qx::dao::ptr<T> : provide a classic smart-pointer (like boost::shared_ptr<T> or QSharedPointer<T>) wi...
qx_bool : boolean type with code and description message when an error occured
qx::dao::ptr<T> : provide a classic smart-pointer (like boost::shared_ptr<T> or QSharedPointer<T>) wi...
qx_bool from_json(const QJsonValue &j, T &t, const QString &format=QString())
QJsonValue to_json(const T &t, const QString &format=QString())
Root namespace for all QxOrm library features.
static qx_bool fromJson(const QJsonValue &j, qx::dao::ptr< T > &t, const QString &format)
static QJsonValue toJson(const qx::dao::ptr< T > &t, const QString &format)