QxOrm
1.5.0
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) |
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) | |
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 |
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.
qx::QxClassX::QxClassX | ( | ) | [private] |
virtual qx::QxClassX::~QxClassX | ( | ) | [private, virtual] |
void qx::QxClassX::clear | ( | ) | [private] |
static qx::any qx::QxClassX::create | ( | const QString & | sKey | ) | [static] |
static QString qx::QxClassX::dumpAllClasses | ( | ) | [static] |
static QString qx::QxClassX::dumpSqlSchema | ( | ) | [static] |
bool qx::QxClassX::exist | ( | const QString & | sKey | ) | const [private] |
IxClass* qx::QxClassX::get | ( | const QString & | sKey | ) | const [private] |
QxCollection<QString, IxClass *>* qx::QxClassX::getAll | ( | ) | [private] |
static QxCollection<QString, IxClass *>* qx::QxClassX::getAllClasses | ( | ) | [static] |
static QHash<QString, QString>* qx::QxClassX::getAllSqlTypeByClassName | ( | ) | [inline, static] |
Definition at line 119 of file QxClassX.h.
static QHash<QString, QString>* qx::QxClassX::getAllValidatorMessage | ( | ) | [inline, static] |
Definition at line 118 of file QxClassX.h.
static IxClass* qx::QxClassX::getClass | ( | const QString & | sKey | ) | [static] |
static IxDataMember* qx::QxClassX::getDataMember | ( | const QString & | sClassKey, |
const QString & | sDataKey, | ||
bool | bRecursive = true |
||
) | [static] |
static IxDataMemberX* qx::QxClassX::getDataMemberX | ( | const QString & | sKey | ) | [static] |
static type_fct_load_qvariant_usertype qx::QxClassX::getFctLoadQVariantUserType | ( | ) | [inline, static] |
Definition at line 127 of file QxClassX.h.
static IxFunction* qx::QxClassX::getFctMember | ( | const QString & | sClassKey, |
const QString & | sFctKey, | ||
bool | bRecursive = true |
||
) | [static] |
static IxFunctionX* qx::QxClassX::getFctMemberX | ( | const QString & | sKey | ) | [static] |
static type_fct_save_qvariant_usertype qx::QxClassX::getFctSaveQVariantUserType | ( | ) | [inline, static] |
Definition at line 126 of file QxClassX.h.
static IxFunction* qx::QxClassX::getFctStatic | ( | const QString & | sClassKey, |
const QString & | sFctKey, | ||
bool | bRecursive = true |
||
) | [static] |
static IxFunctionX* qx::QxClassX::getFctStaticX | ( | const QString & | sKey | ) | [static] |
static QString qx::QxClassX::getSqlTypeByClassName | ( | const QString & | sClassName | ) | [inline, static] |
Definition at line 120 of file QxClassX.h.
static const std::type_info& qx::QxClassX::getTypeInfo | ( | const QString & | sClassName | ) | [inline, static] |
Definition at line 123 of file QxClassX.h.
static bool qx::QxClassX::implementIxPersistable | ( | const QString & | sKey, |
bool | bTraceIfFalse = true |
||
) | [static] |
void qx::QxClassX::initSqlTypeByClassName | ( | ) | [private] |
void qx::QxClassX::initValidatorMessage | ( | ) | [private] |
bool qx::QxClassX::insert | ( | const QString & | sKey, |
IxClass * | pClass | ||
) | [private] |
static qx_bool qx::QxClassX::invoke | ( | const QString & | sClassKey, |
const QString & | sFctKey, | ||
U & | pOwner, | ||
const QString & | params = QString() , |
||
qx::any * | ret = NULL |
||
) | [inline, static] |
Definition at line 132 of file QxClassX.h.
static qx_bool qx::QxClassX::invoke | ( | const QString & | sClassKey, |
const QString & | sFctKey, | ||
U & | pOwner, | ||
const type_any_params & | params, | ||
qx::any * | ret = NULL |
||
) | [inline, static] |
Definition at line 140 of file QxClassX.h.
static qx_bool qx::QxClassX::invokeStatic | ( | const QString & | sClassKey, |
const QString & | sFctKey, | ||
const QString & | params = QString() , |
||
qx::any * | ret = NULL |
||
) | [static] |
static qx_bool qx::QxClassX::invokeStatic | ( | const QString & | sClassKey, |
const QString & | sFctKey, | ||
const type_any_params & | params, | ||
qx::any * | ret = NULL |
||
) | [static] |
static qx_bool qx::QxClassX::invokeVoidPtr | ( | const QString & | sClassKey, |
const QString & | sFctKey, | ||
void * | pOwner, | ||
const QString & | params = QString() , |
||
qx::any * | ret = NULL |
||
) | [static, private] |
static qx_bool qx::QxClassX::invokeVoidPtr | ( | const QString & | sClassKey, |
const QString & | sFctKey, | ||
void * | pOwner, | ||
const type_any_params & | params, | ||
qx::any * | ret = NULL |
||
) | [static, private] |
static bool qx::QxClassX::isValid_DataMember | ( | IxDataMember * | p | ) | [static, private] |
static bool qx::QxClassX::isValid_SqlRelation | ( | IxDataMember * | p | ) | [static, private] |
static void qx::QxClassX::registerAllClasses | ( | bool | bInitAllRelations = true , |
bool | bInitValidator = true |
||
) | [static] |
bool qx::QxClassX::remove | ( | const QString & | sKey | ) | [private] |
static void qx::QxClassX::setFctLoadQVariantUserType | ( | type_fct_load_qvariant_usertype | fct | ) | [inline, static] |
Definition at line 129 of file QxClassX.h.
static void qx::QxClassX::setFctSaveQVariantUserType | ( | type_fct_save_qvariant_usertype | fct | ) | [inline, static] |
Definition at line 128 of file QxClassX.h.
const std::type_info& qx::QxClassX::typeInfo | ( | const QString & | sKey | ) | const [private] |
friend class IxClass [friend] |
Definition at line 67 of file QxClassX.h.
friend class QxSingleton< QxClassX > [friend] |
Definition at line 66 of file QxClassX.h.
Serialization of QVariant UserType => function to load a QVariant UserType (cf. QxSerialize_QVariant.cpp file)
Definition at line 81 of file QxClassX.h.
Serialization of QVariant UserType => function to save a QVariant UserType (cf. QxSerialize_QVariant.cpp file)
Definition at line 80 of file QxClassX.h.
QxCollection<QString, IxClass *> qx::QxClassX::m_lstClass [protected] |
Collection of classes registered into QxOrm context.
Definition at line 77 of file QxClassX.h.
QHash<QString, QString> qx::QxClassX::m_lstSqlTypeByClassName [protected] |
List of SQL types by class name.
Definition at line 78 of file QxClassX.h.
QHash<QString, QString> qx::QxClassX::m_lstValidatorMessage [protected] |
List of validator message when an invalid value is detected.
Definition at line 79 of file QxClassX.h.