Ilwis-Objects
1.0
GIS and Remote Sensing framework for data access and processing
Main Page
Classes
Files
File List
All
Classes
Functions
Enumerations
Pages
ilwisobjects
coverage
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
13
class
FeatureFactory
:
public
AbstractFactory
14
{
15
public
:
16
FeatureFactory
();
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
Generated on Fri Mar 28 2014 13:51:04 for Ilwis-Objects by
1.8.3.1