![]() |
QxOrm 1.4.9
C++ Object Relational Mapping library
|
qx::QxClassX : list of all classes registered into QxOrm context (this container is a singleton) More...
#include <QxClassX.h>
Classes | |
struct | invoke_default |
struct | invoke_ptr |
Public Types | |
typedef IxFunction::type_any_params | type_any_params |
typedef std::function< QString(const QVariant &, int, const unsigned int)> | type_fct_save_qvariant_usertype |
typedef std::function< QVariant(const QString &, int, const unsigned int)> | type_fct_load_qvariant_usertype |
Static Public Member Functions | |
static qx::any | create (const QString &sKey) |
static IxClass * | getClass (const QString &sKey) |
static IxDataMemberX * | getDataMemberX (const QString &sKey) |
static IxFunctionX * | getFctMemberX (const QString &sKey) |
static IxFunctionX * | getFctStaticX (const QString &sKey) |
static IxDataMember * | getDataMember (const QString &sClassKey, const QString &sDataKey, bool bRecursive=true) |
static IxFunction * | getFctMember (const QString &sClassKey, const QString &sFctKey, bool bRecursive=true) |
static IxFunction * | getFctStatic (const QString &sClassKey, const QString &sFctKey, bool bRecursive=true) |
static bool | implementIxPersistable (const QString &sKey, bool bTraceIfFalse=true) |
static QxCollection< QString, IxClass * > * | getAllClasses () |
static void | registerAllClasses (bool bInitAllRelations=true, bool bInitValidator=true) |
static QString | dumpAllClasses () |
static QString | dumpSqlSchema () |
static QHash< QString, QString > * | getAllValidatorMessage () |
static QHash< QString, QString > * | getAllSqlTypeByClassName () |
static QString | getSqlTypeByClassName (const QString &sClassName) |
static const std::type_info & | getTypeInfo (const QString &sClassName) |
static type_fct_save_qvariant_usertype | getFctSaveQVariantUserType () |
static type_fct_load_qvariant_usertype | getFctLoadQVariantUserType () |
static void | setFctSaveQVariantUserType (type_fct_save_qvariant_usertype fct) |
static void | setFctLoadQVariantUserType (type_fct_load_qvariant_usertype fct) |
template<class U > | |
static qx_bool | invoke (const QString &sClassKey, const QString &sFctKey, U &pOwner, const QString ¶ms=QString(), qx::any *ret=NULL) |
template<class U > | |
static qx_bool | invoke (const QString &sClassKey, const QString &sFctKey, U &pOwner, const type_any_params ¶ms, qx::any *ret=NULL) |
static qx_bool | invokeStatic (const QString &sClassKey, const QString &sFctKey, const QString ¶ms=QString(), qx::any *ret=NULL) |
static qx_bool | invokeStatic (const QString &sClassKey, const QString &sFctKey, const type_any_params ¶ms, qx::any *ret=NULL) |
![]() | |
static QxClassX * | getSingleton () |
static void | deleteSingleton () |
Protected Attributes | |
QxCollection< QString, IxClass * > | m_lstClass |
Collection of classes registered into QxOrm context. | |
QHash< QString, QString > | m_lstSqlTypeByClassName |
List of SQL types by class name. | |
QHash< QString, QString > | m_lstValidatorMessage |
List of validator message when an invalid value is detected. | |
type_fct_save_qvariant_usertype | m_fctSaveQVariantUserType |
Serialization of QVariant UserType => function to save a QVariant UserType (cf. QxSerialize_QVariant.cpp file) | |
type_fct_load_qvariant_usertype | m_fctLoadQVariantUserType |
Serialization of QVariant UserType => function to load a QVariant UserType (cf. QxSerialize_QVariant.cpp file) | |
![]() | |
QString | m_sKeySingleton |
Singleton key used by 'QxSingletonX' container. | |
Private Member Functions | |
QxClassX () | |
virtual | ~QxClassX () |
QxCollection< QString, IxClass * > * | getAll () |
IxClass * | get (const QString &sKey) const |
bool | exist (const QString &sKey) const |
bool | insert (const QString &sKey, IxClass *pClass) |
bool | remove (const QString &sKey) |
void | clear () |
void | initSqlTypeByClassName () |
void | initValidatorMessage () |
const std::type_info & | typeInfo (const QString &sKey) const |
Static Private Member Functions | |
static qx_bool | invokeVoidPtr (const QString &sClassKey, const QString &sFctKey, void *pOwner, const QString ¶ms=QString(), qx::any *ret=NULL) |
static qx_bool | invokeVoidPtr (const QString &sClassKey, const QString &sFctKey, void *pOwner, const type_any_params ¶ms, qx::any *ret=NULL) |
static bool | isValid_DataMember (IxDataMember *p) |
static bool | isValid_SqlRelation (IxDataMember *p) |
Friends | |
class | QxSingleton< QxClassX > |
class | IxClass |
Additional Inherited Members | |
![]() | |
QxSingleton (const QString &sKey) | |
virtual | ~QxSingleton () |
virtual void | deleteInstance () |
![]() | |
IxSingleton (const QString &sKey) | |
virtual | ~IxSingleton () |
![]() | |
static bool | isSingletonNull () |
![]() | |
static void | initQxSingletonX () |
qx::QxClassX : list of all classes registered into QxOrm context (this container is a singleton)
Definition at line 63 of file QxClassX.h.
Definition at line 71 of file QxClassX.h.
typedef std::function<QVariant (const QString &, int, const unsigned int)> qx::QxClassX::type_fct_load_qvariant_usertype |
Definition at line 73 of file QxClassX.h.
typedef std::function<QString (const QVariant &, int, const unsigned int)> qx::QxClassX::type_fct_save_qvariant_usertype |
Definition at line 72 of file QxClassX.h.
|
private |
|
privatevirtual |
|
private |
|
static |
|
static |
|
static |
|
private |
|
private |
|
private |
|
static |
|
inlinestatic |
Definition at line 119 of file QxClassX.h.
|
inlinestatic |
Definition at line 118 of file QxClassX.h.
|
static |
|
static |
|
static |
|
inlinestatic |
Definition at line 127 of file QxClassX.h.
|
static |
|
static |
|
inlinestatic |
Definition at line 126 of file QxClassX.h.
|
static |
|
static |
|
inlinestatic |
Definition at line 120 of file QxClassX.h.
|
inlinestatic |
Definition at line 123 of file QxClassX.h.
|
static |
|
private |
|
private |
|
private |
|
inlinestatic |
Definition at line 132 of file QxClassX.h.
|
inlinestatic |
Definition at line 140 of file QxClassX.h.
|
static |
|
static |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
|
private |
|
inlinestatic |
Definition at line 129 of file QxClassX.h.
|
inlinestatic |
Definition at line 128 of file QxClassX.h.
|
private |
|
friend |
Definition at line 67 of file QxClassX.h.
|
friend |
Definition at line 63 of file QxClassX.h.
|
protected |
Serialization of QVariant UserType => function to load a QVariant UserType (cf. QxSerialize_QVariant.cpp file)
Definition at line 81 of file QxClassX.h.
|
protected |
Serialization of QVariant UserType => function to save a QVariant UserType (cf. QxSerialize_QVariant.cpp file)
Definition at line 80 of file QxClassX.h.
|
protected |
Collection of classes registered into QxOrm context.
Definition at line 77 of file QxClassX.h.
|
protected |
List of SQL types by class name.
Definition at line 78 of file QxClassX.h.
|
protected |
List of validator message when an invalid value is detected.
Definition at line 79 of file QxClassX.h.