qx::QxFactoryX : list of all classes registered with QxOrm library factory pattern to create object instance dynamically using the class name
More...
#include <QxFactoryX.h>
|
| class | QxClassX |
| |
| class | IxFactory |
| |
| class | QxSingleton< QxFactoryX > |
| |
| qx::any | create (const QString &sKey, bool bRawPointer=false) |
| | Return a smart-pointer new instance of object (std::shared_ptr<T>) associated by key sKey using qx::any type (for example : qx::create("drug") return a new instance of smart-pointer drug class into qx::any type)
|
| |
| template<typename T > |
| T * | create_nude_ptr (const QString &sKey) |
| | Return a nude pointer (be careful with memory leak) of type T associated by key sKey, or return NULL if sKey is not registered into factory engine.
|
| |
| void * | create_void_ptr (const QString &sKey) |
| | Return a void * pointer (be careful with memory leak) associated by key sKey, or return NULL if sKey is not registered into factory engine.
|
| |
qx::QxFactoryX : list of all classes registered with QxOrm library factory pattern to create object instance dynamically using the class name
Definition at line 65 of file QxFactoryX.h.
◆ QxFactoryX()
| qx::QxFactoryX::QxFactoryX |
( |
| ) |
|
|
inlineprivate |
◆ ~QxFactoryX()
| virtual qx::QxFactoryX::~QxFactoryX |
( |
| ) |
|
|
inlineprivatevirtual |
◆ createInstance()
| static qx::any qx::QxFactoryX::createInstance |
( |
const QString & | sKey, |
|
|
bool | bRawPointer = false ) |
|
inlinestaticprivate |
◆ createInstanceNudePtr()
| static void * qx::QxFactoryX::createInstanceNudePtr |
( |
const QString & | sKey | ) |
|
|
inlinestaticprivate |
◆ createObject()
| qx::any qx::QxFactoryX::createObject |
( |
const QString & | sKey, |
|
|
bool | bRawPointer = false ) const |
|
private |
◆ createObjectNudePtr()
| void * qx::QxFactoryX::createObjectNudePtr |
( |
const QString & | sKey | ) |
const |
|
private |
◆ getAllFactory()
| QHash< QString, IxFactory * > * qx::QxFactoryX::getAllFactory |
( |
| ) |
|
|
inlineprivate |
◆ getTypeInfo()
| static const std::type_info & qx::QxFactoryX::getTypeInfo |
( |
const QString & | sKey | ) |
|
|
inlinestaticprivate |
◆ registerFactory()
| void qx::QxFactoryX::registerFactory |
( |
const QString & | sKey, |
|
|
IxFactory * | pFactory ) |
|
private |
◆ typeInfo()
| const std::type_info & qx::QxFactoryX::typeInfo |
( |
const QString & | sKey | ) |
const |
|
private |
◆ unregisterFactory()
| void qx::QxFactoryX::unregisterFactory |
( |
const QString & | sKey | ) |
|
|
private |
◆ create
| qx::any create |
( |
const QString & | sKey, |
|
|
bool | bRawPointer = false ) |
|
friend |
Return a smart-pointer new instance of object (std::shared_ptr<T>) associated by key sKey using qx::any type (for example : qx::create("drug") return a new instance of smart-pointer drug class into qx::any type)
Definition at line 110 of file QxFactoryX.h.
◆ create_nude_ptr
template<typename T >
| T * create_nude_ptr |
( |
const QString & | sKey | ) |
|
|
friend |
Return a nude pointer (be careful with memory leak) of type T associated by key sKey, or return NULL if sKey is not registered into factory engine.
Definition at line 118 of file QxFactoryX.h.
◆ create_void_ptr
| void * create_void_ptr |
( |
const QString & | sKey | ) |
|
|
friend |
Return a void * pointer (be careful with memory leak) associated by key sKey, or return NULL if sKey is not registered into factory engine.
Definition at line 129 of file QxFactoryX.h.
◆ IxFactory
◆ QxClassX
◆ QxSingleton< QxFactoryX >
◆ m_mapFactoryX
| QHash<QString, IxFactory *> qx::QxFactoryX::m_mapFactoryX |
|
protected |
◆ m_oMutexFactoryX
| QMutex qx::QxFactoryX::m_oMutexFactoryX |
|
protected |
The documentation for this class was generated from the following file: