QxOrm
1.5.0
C++ Object Relational Mapping library
|
#include <QxConvert/QxConvert.h>
#include <QxCommon/QxBool.h>
#include <QxDao/QxDateNeutral.h>
#include <QxDao/QxTimeNeutral.h>
#include <QxDao/QxDateTimeNeutral.h>
#include <QxDao/QxSqlQuery.h>
#include <QxDao/IxPersistable.h>
#include <QxCollection/QxCollection.h>
#include <QxRegister/QxClass.h>
#include <QxSerialize/QxArchive.h>
#include <QxSerialize/QxSerializeQDataStream.h>
#include <QxSerialize/QDataStream/QxSerializeQDataStream_all_include.h>
#include <QxSerialize/QJson/QxSerializeQJson_qx_registered_class.h>
#include <QxValidator/QxInvalidValue.h>
#include <QxValidator/QxInvalidValueX.h>
#include <QxTraits/is_smart_ptr.h>
#include <QxTraits/is_container.h>
#include <QxTraits/is_qx_registered.h>
#include <QxTraits/is_qt_variant_compatible.h>
#include <QxTraits/get_class_name_primitive.h>
#include <QxTraits/construct_ptr.h>
#include <QxTraits/generic_container.h>
#include "../../inl/QxConvert/QxConvert_WithIndex.inl"
#include "../../inl/QxConvert/QxConvert_ToString.inl"
#include "../../inl/QxConvert/QxConvert_FromString.inl"
#include "../../inl/QxConvert/QxConvert_ToVariant.inl"
#include "../../inl/QxConvert/QxConvert_FromVariant.inl"
#include "../../inl/QxConvert/QxConvert_ToJson.inl"
#include "../../inl/QxConvert/QxConvert_FromJson.inl"
#include "../../inl/QxConvert/QxConvert_Qt.inl"
Go to the source code of this file.
#define QX_CVT_DEFAULT_ARCHIVE qx::serialization::polymorphic_xml |
Definition at line 74 of file QxConvert_Impl.h.
#define QX_CVT_USING_ARCHIVE_IMPL | ( | className | ) |
namespace qx { namespace cvt { namespace detail { \ template <> struct QxConvert_ToString< className > { \ static inline QString toString(const className & t, const QString & format, int index, qx::cvt::context::ctx_type ctx) \ { Q_UNUSED(format); Q_UNUSED(index); Q_UNUSED(ctx); return QX_CVT_DEFAULT_ARCHIVE::to_string(t); } }; \ template <> struct QxConvert_FromString< className > { \ static inline qx_bool fromString(const QString & s, className & t, const QString & format, int index, qx::cvt::context::ctx_type ctx) \ { Q_UNUSED(format); Q_UNUSED(index); Q_UNUSED(ctx); return QX_CVT_DEFAULT_ARCHIVE::from_string(t, s); } }; \ template <> struct QxConvert_ToVariant< className > { \ static inline QVariant toVariant(const className & t, const QString & format, int index, qx::cvt::context::ctx_type ctx) \ { Q_UNUSED(format); Q_UNUSED(index); Q_UNUSED(ctx); return QX_CVT_DEFAULT_ARCHIVE::to_string(t); } }; \ template <> struct QxConvert_FromVariant< className > { \ static inline qx_bool fromVariant(const QVariant & v, className & t, const QString & format, int index, qx::cvt::context::ctx_type ctx) \ { Q_UNUSED(format); Q_UNUSED(index); Q_UNUSED(ctx); QString s = v.toString(); return QX_CVT_DEFAULT_ARCHIVE::from_string(t, s); } }; \ } } }
Definition at line 86 of file QxConvert_Impl.h.
#define QX_JSON_DATE_TIME_FORMAT Qt::ISODateWithMs |
Definition at line 103 of file QxConvert_Impl.h.
#define QX_JSON_DATE_TIME_FORMAT_SIZE 23 |
Definition at line 104 of file QxConvert_Impl.h.
#define QX_STR_CVT_QDATE_FORMAT "yyyyMMdd" |
Definition at line 68 of file QxConvert_Impl.h.
#define QX_STR_CVT_QDATETIME_FORMAT "yyyyMMddhhmmsszzz" |
Definition at line 70 of file QxConvert_Impl.h.
#define QX_STR_CVT_QTIME_FORMAT "hhmmsszzz" |
Definition at line 69 of file QxConvert_Impl.h.