![]() |
TerraLib 4.1
|
Implements a template for the "TeFactory" pattern. More...
#include <TeFactory.h>
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 TeFactoryMap & | instance () |
| 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) | |
Implements a template for the "TeFactory" pattern.
| typedef map<string, TeFactory<T,Arg>* > TeFactory< T, Arg >::TeFactoryMap |
Dictionary of factories (indexed by name)
Normal Constructor.
| 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.
| static TeFactoryMap& TeFactory< T, Arg >::instance | ( | ) | [inline, static] |
Returns the single instance of the factory dictionay.
| T * TeFactory< T, Arg >::make | ( | const Arg & | arg | ) | [static] |
Virtual constructor using arguments.
Builds an object, based on the input parameters.
| T * TeFactory< T, Arg >::make | ( | string | name, |
| const Arg & | arg | ||
| ) | [static] |
Virtual constructor using name.
Builds an object, based on the input parameters.