| QxOrm 1.4.4 C++ Object Relational Mapping library

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Directories

- File List
- File Members

Classes | Namespaces | Defines | Functions
QxConvert_Impl.h File Reference
`#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 <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.

## Classes
struct | qx::cvt::detail::helper::QxConvertHelper_Generic
struct | qx::cvt::detail::helper::QxConvertHelper_Ptr
struct | qx::cvt::detail::helper::QxConvertHelper_Registered
struct | qx::cvt::detail::helper::QxConvertHelper_Container
struct | qx::cvt::detail::helper::QxConvertHelper_Enum
struct | qx::cvt::detail::QxConvertHelper_ToString< T, H >
struct | qx::cvt::detail::QxConvertHelper_FromString< T, H >
struct | qx::cvt::detail::QxConvertHelper_ToVariant< T, H >
struct | qx::cvt::detail::QxConvertHelper_FromVariant< T, H >
struct | qx::cvt::detail::QxConvertHelper_ToJson< T, H >
struct | qx::cvt::detail::QxConvertHelper_FromJson< T, H >
struct | qx::cvt::detail::QxConvertHelper_ToString< T, qx::cvt::detail::helper::QxConvertHelper_Generic >
struct | qx::cvt::detail::QxConvertHelper_FromString< T, qx::cvt::detail::helper::QxConvertHelper_Generic >
struct | qx::cvt::detail::QxConvertHelper_ToVariant< T, qx::cvt::detail::helper::QxConvertHelper_Generic >
struct | qx::cvt::detail::QxConvertHelper_ToVariant< T, qx::cvt::detail::helper::QxConvertHelper_Generic >::cvtQVariant< isQVariantCompatible, dummy >
struct | qx::cvt::detail::QxConvertHelper_ToVariant< T, qx::cvt::detail::helper::QxConvertHelper_Generic >::cvtQVariant< true, dummy >
struct | qx::cvt::detail::QxConvertHelper_FromVariant< T, qx::cvt::detail::helper::QxConvertHelper_Generic >
struct | qx::cvt::detail::QxConvertHelper_FromVariant< T, qx::cvt::detail::helper::QxConvertHelper_Generic >::cvtQVariant< isQVariantCompatible, dummy >
struct | qx::cvt::detail::QxConvertHelper_FromVariant< T, qx::cvt::detail::helper::QxConvertHelper_Generic >::cvtQVariant< true, dummy >
struct | qx::cvt::detail::QxConvertHelper_ToJson< T, qx::cvt::detail::helper::QxConvertHelper_Generic >
struct | qx::cvt::detail::QxConvertHelper_FromJson< T, qx::cvt::detail::helper::QxConvertHelper_Generic >
struct | qx::cvt::detail::QxConvertHelper_ToString< T, qx::cvt::detail::helper::QxConvertHelper_Ptr >
struct | qx::cvt::detail::QxConvertHelper_FromString< T, qx::cvt::detail::helper::QxConvertHelper_Ptr >
struct | qx::cvt::detail::QxConvertHelper_ToVariant< T, qx::cvt::detail::helper::QxConvertHelper_Ptr >
struct | qx::cvt::detail::QxConvertHelper_FromVariant< T, qx::cvt::detail::helper::QxConvertHelper_Ptr >
struct | qx::cvt::detail::QxConvertHelper_ToJson< T, qx::cvt::detail::helper::QxConvertHelper_Ptr >
struct | qx::cvt::detail::QxConvertHelper_FromJson< T, qx::cvt::detail::helper::QxConvertHelper_Ptr >
struct | qx::cvt::detail::QxConvertHelper_ToString< T, qx::cvt::detail::helper::QxConvertHelper_Registered >
struct | qx::cvt::detail::QxConvertHelper_FromString< T, qx::cvt::detail::helper::QxConvertHelper_Registered >
struct | qx::cvt::detail::QxConvertHelper_ToVariant< T, qx::cvt::detail::helper::QxConvertHelper_Registered >
struct | qx::cvt::detail::QxConvertHelper_FromVariant< T, qx::cvt::detail::helper::QxConvertHelper_Registered >
struct | qx::cvt::detail::QxConvertHelper_ToJson< T, qx::cvt::detail::helper::QxConvertHelper_Registered >
struct | qx::cvt::detail::QxConvertHelper_FromJson< T, qx::cvt::detail::helper::QxConvertHelper_Registered >
struct | qx::cvt::detail::QxConvertHelper_ToString< T, qx::cvt::detail::helper::QxConvertHelper_Container >
struct | qx::cvt::detail::QxConvertHelper_FromString< T, qx::cvt::detail::helper::QxConvertHelper_Container >
struct | qx::cvt::detail::QxConvertHelper_ToVariant< T, qx::cvt::detail::helper::QxConvertHelper_Container >
struct | qx::cvt::detail::QxConvertHelper_FromVariant< T, qx::cvt::detail::helper::QxConvertHelper_Container >
struct | qx::cvt::detail::QxConvertHelper_ToJson< T, qx::cvt::detail::helper::QxConvertHelper_Container >
struct | qx::cvt::detail::QxConvertHelper_FromJson< T, qx::cvt::detail::helper::QxConvertHelper_Container >
struct | qx::cvt::detail::QxConvertHelper_ToString< T, qx::cvt::detail::helper::QxConvertHelper_Enum >
struct | qx::cvt::detail::QxConvertHelper_FromString< T, qx::cvt::detail::helper::QxConvertHelper_Enum >
struct | qx::cvt::detail::QxConvertHelper_ToVariant< T, qx::cvt::detail::helper::QxConvertHelper_Enum >
struct | qx::cvt::detail::QxConvertHelper_FromVariant< T, qx::cvt::detail::helper::QxConvertHelper_Enum >
struct | qx::cvt::detail::QxConvertHelper_ToJson< T, qx::cvt::detail::helper::QxConvertHelper_Enum >
struct | qx::cvt::detail::QxConvertHelper_FromJson< T, qx::cvt::detail::helper::QxConvertHelper_Enum >
struct | qx::cvt::detail::QxConvertHelper< T >
struct | qx::cvt::detail::QxConvert_ToString< T >
struct | qx::cvt::detail::QxConvert_FromString< T >
struct | qx::cvt::detail::QxConvert_ToVariant< T >
struct | qx::cvt::detail::QxConvert_FromVariant< T >
struct | qx::cvt::detail::QxConvert_ToJson< T >
struct | qx::cvt::detail::QxConvert_FromJson< T >
## Namespaces
namespace | qx
| Root namespace for all QxOrm library features.
namespace | qx::cvt
| Provide global functions to convert any kind of objects to/from QString and QVariant format.
namespace | qx::cvt::detail
| Internal helper tools for qx::cvt namespace.
namespace | qx::cvt::detail::helper
## Defines
#define | QX_STR_CVT_QDATE_FORMAT "yyyyMMdd"
#define | QX_STR_CVT_QTIME_FORMAT "hhmmsszzz"
#define | QX_STR_CVT_QDATETIME_FORMAT "yyyyMMddhhmmsszzz"
#define | QX_CVT_DEFAULT_ARCHIVE qx::serialization::polymorphic_xml
#define | QX_CVT_USING_ARCHIVE_IMPL(className)
## Functions
bool | qx::cvt::detail::helper::checkConvertQVariantToString (const QVariant &v)

## Define Documentation

#define QX_CVT_DEFAULT_ARCHIVE qx::serialization::polymorphic_xml

Definition at line 73 of file QxConvert_Impl.h.

#define QX_CVT_USING_ARCHIVE_IMPL | ( |  | className | ) |

Value:

    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 85 of file QxConvert_Impl.h.

#define QX_STR_CVT_QDATE_FORMAT "yyyyMMdd"

Definition at line 67 of file QxConvert_Impl.h.

#define QX_STR_CVT_QDATETIME_FORMAT "yyyyMMddhhmmsszzz"

Definition at line 69 of file QxConvert_Impl.h.

#define QX_STR_CVT_QTIME_FORMAT "hhmmsszzz"

Definition at line 68 of file QxConvert_Impl.h.