TerraLib 4.1
TeFactory< T, Arg > Class Template Reference

Implements a template for the "TeFactory" pattern. More...

#include <TeFactory.h>

List of all members.

Public Types

typedef map< string, TeFactory
< T, Arg > * > 
TeFactoryMap
 Dictionary of factories (indexed by name)

Public Member Functions

 TeFactory (const string &factoryName)
 Normal Constructor.
virtual ~TeFactory ()

Static Public Member Functions

static TeFactoryMapinstance ()
 Returns the single instance of the factory dictionay.
static T * make (string name, const Arg &arg)
 Virtual constructor using name.
static T * make (const Arg &arg)
 Virtual constructor using arguments.

Protected Member Functions

virtual T * build (const Arg &arg)=0
 Builds a new type (should be implemented by descendants)

Detailed Description

template<class T, class Arg>
class TeFactory< T, Arg >

Implements a template for the "TeFactory" pattern.


Member Typedef Documentation

template<class T, class Arg>
typedef map<string, TeFactory<T,Arg>* > TeFactory< T, Arg >::TeFactoryMap

Dictionary of factories (indexed by name)


Constructor & Destructor Documentation

template<class T , class Arg >
TeFactory< T, Arg >::TeFactory ( const string factoryName)

Normal Constructor.

template<class T, class Arg>
virtual TeFactory< T, Arg >::~TeFactory ( ) [inline, virtual]

Member Function Documentation

template<class T, class Arg>
virtual T* TeFactory< T, Arg >::build ( const Arg &  arg) [protected, pure virtual]

Builds a new type (should be implemented by descendants)

Implemented in TeAdoFactory, TeOracleFactory, TeSqlServerFactory, TeSqlServerSpatialFactory, TeFirebirdFactory, TeGDALDecoderFactory, TeDecoderMrSIDFactory, TeMySQLFactory, TeOCIOracleFactory, TeOracleSpatialFactory, TeDecoderPAMFactory, TePostGISFactory, TePostgreSQLFactory, TeDecoderQtImageFactory, TeQuerierSHPFactory, TeSQLiteFactory, TePDIArithmeticFactory, TePDIBDFilterFactory, TePDIColorTransformFactory, TePDIContrastFactory, TePDIEMClasFactory, TePDIIsosegClasFactory, TePDIKMeansClasFactory, TePDILinearFilterFactory, TePDIMixModelFactory, TePDIMorfFilterFactory, TePDIParaSegBaatzStrategyFactory, TePDIParaSegRegGrowStrategyFactory, TePDIPrincipalComponentsFactory, TePDIPrincoMixModelSF, TePDIRadarFrostFilterFactory, TePDIRadarKuanFilterFactory, TePDIRadarLeeFilterFactory, TePDIRaster2VectorFactory, TePDIRegGrowSegFactory, TePDIRegisterFactory, TePDISensorSimulatorFactory, Te2ndDegPolinomialGTFactory, TeAffineGTFactory, TeDecoderASCIIGridFactory, TeDecoderDatabaseFactory, TeDecoderJPEGFactory, TeDecoderMemoryFactory, TeDecoderMemoryMapFactory, TeDecoderSmartMemFactory, TeDecoderSPRFactory, TeDecoderTIFFFactory, TeProjectiveGTFactory, TeQuerierDBStr1Factory, TeQuerierDBStr2Factory, TeQuerierDBStr3Factory, TeMSVFactory, TeSemivariogram_Factory, TeCorrelogram_Factory, TeSemimadogram_Factory, TeCovariance_Factory, TeSemivarModelFactory, TeEsfericSemivar_Factory, TeExponentialSemivar_Factory, and TeGaussianSemivar_Factory.

template<class T, class Arg>
static TeFactoryMap& TeFactory< T, Arg >::instance ( ) [inline, static]

Returns the single instance of the factory dictionay.

template<class T , class Arg>
T * TeFactory< T, Arg >::make ( const Arg &  arg) [static]

Virtual constructor using arguments.

Builds an object, based on the input parameters.

template<class T , class Arg>
T * TeFactory< T, Arg >::make ( string  name,
const Arg &  arg 
) [static]

Virtual constructor using name.

Builds an object, based on the input parameters.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines