QxOrm  1.4.3
C++ Object Relational Mapping library
QxFactory : QxOrm library factory pattern used by introspection engine

Classes

class  qx::IxFactory
 qx::IxFactory : common interface for all classes that can be created dynamically using the class name More...
class  qx::QxFactory< T >
 qx::QxFactory<T> : concrete factory class to create object of type T dynamically using the class name More...
class  qx::QxFactoryX
 qx::QxFactoryX : list of all classes registered with QxOrm library factory pattern to create object instance dynamically using the class name More...

Files

file  IxFactory.h
 

Common interface for all classes that can be created dynamically using the class name.


file  QxFactory.h
 

Concrete factory class to create object dynamically using the class name.


file  QxFactoryX.h
 

List of all classes registered with QxOrm library factory pattern to create object instance dynamically using the class name.


Functions

boost::any qx::create (const QString &sKey)
 Return a smart-pointer new instance of object (qx_shared_ptr<T>) associated by key sKey using boost::any type (for example : qx::create("drug") return a new instance of smart-pointer drug class into boost::any type)
template<typename T >
T * qx::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 * qx::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.

Function Documentation

boost::any qx::create ( const QString &  sKey) [inline]

Return a smart-pointer new instance of object (qx_shared_ptr<T>) associated by key sKey using boost::any type (for example : qx::create("drug") return a new instance of smart-pointer drug class into boost::any type)

Definition at line 112 of file QxFactoryX.h.

template<typename T >
T * qx::create_nude_ptr ( const QString &  sKey) [inline]

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 120 of file QxFactoryX.h.

void * qx::create_void_ptr ( const QString &  sKey) [inline]

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 131 of file QxFactoryX.h.