32#ifndef _QX_SERIALIZE_CHECK_INSTANCE_H_
33#define _QX_SERIALIZE_CHECK_INSTANCE_H_
46#include <QtCore/qset.h>
47#include <QtCore/qpair.h>
48#include <QtCore/qthread.h>
52class QxSqlRelationLinked;
58namespace serialization {
70 typedef QPair<std::shared_ptr<qx::QxSqlRelationLinked>, QString>
type_hierarchy;
qx::IxClass : common interface for all classes registered into QxOrm context
qx::serialization::helper::QxSerializeCheckInstance : check instance during serialization process to ...
Qt::HANDLE m_lThreadId
Thread id associated to this helper class.
virtual ~QxSerializeCheckInstance()
static QMutex m_mutex
Mutex => qx::serialization::helper::QxSerializeCheckInstance is thread-safe.
static void setHierarchy(const type_hierarchy &hierarchy)
QPair< std::shared_ptr< qx::QxSqlRelationLinked >, QString > type_hierarchy
QxSerializeCheckInstance(const void *pInstance, qx::IxClass *pClass)
static QHash< Qt::HANDLE, type_hierarchy > m_hashHierarchyByThread
Store current hierarchy used by serialization process.
static QHash< Qt::HANDLE, int > m_hashLevelByThread
Manage how deep level is serialization process.
static QSet< QPair< Qt::HANDLE, QPair< qptrdiff, qx::IxClass * > > > m_lstInstanceByThread
List of all instances currently used by a serialization process.
qx::IxClass * m_pClass
Class associated to this helper class.
static bool contains(const void *pInstance, qx::IxClass *pClass)
qptrdiff m_pInstance
Instance associated to this helper class.
static type_hierarchy getHierarchy()
Root namespace for all QxOrm library features.