Machine Learning Library
|
Produces objects of given name and type. More...
#include <CObjectFactory.h>
Public Member Functions | |
~CObjectFactory () | |
void * | produceObject (const char *acObjectName, DATATYPE tType) |
void * | produceObject (const string strObjectName, DATATYPE tType) |
bool | canProduce (const char *acObjectName) |
bool | canProduce (const string strObjectName) |
Static Public Member Functions | |
static CObjectFactory * | instance () |
Protected Member Functions | |
CObjectFactory () | |
Produces objects of given name and type.
The object factory can produce any object for which a corresponding '*Factory.so' shared object is located in the library path. The object to produce is specified by the name and by the datatype. The main area of application is the serialization of certain objects.
CObjectFactory::~CObjectFactory | ( | ) |
|
protected |
bool CObjectFactory::canProduce | ( | const char * | acObjectName | ) |
bool CObjectFactory::canProduce | ( | const string | strObjectName | ) |
|
static |
Referenced by CDatasetItem< Type >::serialize(), and CDatasetItem< Type >::serialize2().
void* CObjectFactory::produceObject | ( | const char * | acObjectName, |
DATATYPE | tType | ||
) |
Produce object of given name and type
acObjectName | Name of class |
tType | Template type |
Referenced by CDatasetItem< Type >::serialize(), and CDatasetItem< Type >::serialize2().
void* CObjectFactory::produceObject | ( | const string | strObjectName, |
DATATYPE | tType | ||
) |
Produce object of given name and type
acObjectName | Name of class |
tType | Template type |