Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'indexer/feature_source.hpp')
-rw-r--r--indexer/feature_source.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indexer/feature_source.hpp b/indexer/feature_source.hpp
index 19bc3d6fb4..96f56e8725 100644
--- a/indexer/feature_source.hpp
+++ b/indexer/feature_source.hpp
@@ -50,3 +50,13 @@ protected:
MwmSet::MwmHandle const & m_handle;
std::unique_ptr<FeaturesVector> m_vector;
}; // class FeatureSource
+
+class FeatureSourceFactory
+{
+public:
+ virtual ~FeatureSourceFactory() = default;
+ virtual std::unique_ptr<FeatureSource> operator()(MwmSet::MwmHandle const & handle) const
+ {
+ return std::make_unique<FeatureSource>(handle);
+ }
+};