Ilwis-Objects  1.0
GIS and Remote Sensing framework for data access and processing
 All Classes Functions Enumerations Pages
featurefactory.h
1 #ifndef FEATUREFACTORY_H
2 #define FEATUREFACTORY_H
3 
4 #include <functional>
5 #include <map>
6 
7 namespace Ilwis {
8 class FeatureInterface;
9 class FeatureCoverage;
10 
11 typedef std::function<FeatureInterface *(FeatureCoverage* fcoverage)> CreateFeature;
12 
14 {
15 public:
17  void addCreator(const QString& type, CreateFeature crFunc);
18  CreateFeature getCreator(const QString& type);
19 private:
20  std::map<QString, CreateFeature> _featureFactories;
21 
22 
23 };
24 }
25 
26 #endif // FEATUREFACTORY_H