33#ifdef _QX_ENABLE_BOOST
34#ifndef _QX_SERIALIZE_QJSON_BOOST_SHARED_PTR_H_
35#define _QX_SERIALIZE_QJSON_BOOST_SHARED_PTR_H_
48#include <QtCore/qjsonvalue.h>
49#include <QtCore/qjsonobject.h>
50#include <QtCore/qjsonarray.h>
62 static inline QJsonValue
toJson(
const boost::shared_ptr<T> & t,
const QString & format)
72 static inline qx_bool fromJson(
const QJsonValue & j, boost::shared_ptr<T> & t,
const QString & format)
74 if (j.isNull()) { t.reset();
return qx_bool(
true); }
qx::cvt : namespace to provide global functions to convert any kind of objects to/from QString and QV...
qx_bool : boolean type with code and description message when an error occured
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, boost::shared_ptr< T > &t, const QString &format)
static QJsonValue toJson(const boost::shared_ptr< T > &t, const QString &format)