diff options
author | tatiana-yan <tatiana.kondakova@gmail.com> | 2018-06-26 10:51:37 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2018-06-27 19:20:52 +0300 |
commit | 570b2b0b35df1fad001460eccf35da31e334b8b0 (patch) | |
tree | 2f805cf3122db499b794248f3f6c1bdd232b258c /indexer/feature_source.hpp | |
parent | dd7186b48be4636c1e67d223817a47f3f3a026e9 (diff) |
[indexer] DataSource refactoring
Diffstat (limited to 'indexer/feature_source.hpp')
-rw-r--r-- | indexer/feature_source.hpp | 10 |
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); + } +}; |