Machine Learning Library
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
CObjectFactory Class Reference

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 CObjectFactoryinstance ()
 

Protected Member Functions

 CObjectFactory ()
 

Detailed Description

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.

Constructor & Destructor Documentation

CObjectFactory::~CObjectFactory ( )
CObjectFactory::CObjectFactory ( )
protected

Member Function Documentation

bool CObjectFactory::canProduce ( const char *  acObjectName)
bool CObjectFactory::canProduce ( const string  strObjectName)
static CObjectFactory* CObjectFactory::instance ( )
static
void* CObjectFactory::produceObject ( const char *  acObjectName,
DATATYPE  tType 
)

Produce object of given name and type

Parameters
acObjectNameName of class
tTypeTemplate type
Returns
Pointer to object instance of NULL

Referenced by CDatasetItem< Type >::serialize(), and CDatasetItem< Type >::serialize2().

void* CObjectFactory::produceObject ( const string  strObjectName,
DATATYPE  tType 
)

Produce object of given name and type

Parameters
acObjectNameName of class
tTypeTemplate type
Returns
Pointer to object instance of NULL

The documentation for this class was generated from the following file: