Ilwis-Objects  1.0
GIS and Remote Sensing framework for data access and processing
 All Classes Functions Enumerations Pages
georefimplementationfactory.h
1 #ifndef GEOREFIMPLEMENTATIONFACTORY_H
2 #define GEOREFIMPLEMENTATIONFACTORY_H
3 
4 namespace Ilwis {
5 
6 class GeoRefImplementation;
7 
8 typedef std::function<Ilwis::GeoRefImplementation *()> CreateGeoRefImplementation;
9 
10 class KERNELSHARED_EXPORT GeoRefImplementationFactory : public AbstractFactory
11 {
12 public:
14  void addCreator(const QString& name, CreateGeoRefImplementation func);
15 
16  GeoRefImplementation *create(const QString &name);
17  bool prepare();
18 private:
19  std::map<QString,CreateGeoRefImplementation> _implCreators;
20 };
21 }
22 
23 #endif // GEOREFIMPLEMENTATIONFACTORY_H