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:
authorMaxim Pimenov <m@maps.me>2016-05-24 18:53:58 +0300
committerMaxim Pimenov <m@maps.me>2016-05-24 21:21:19 +0300
commit618b8f8c5c39cb2897d1c6375b7035f99b2bf140 (patch)
tree19166c8f8e42be55f860201c1d0a15a884f484ba /search/processor_factory.hpp
parent8c86074330e43fb6706e4c6fb84b3ad06d893f72 (diff)
[search] Renamed Query to Processor.
Diffstat (limited to 'search/processor_factory.hpp')
-rw-r--r--search/processor_factory.hpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/search/processor_factory.hpp b/search/processor_factory.hpp
new file mode 100644
index 0000000000..f4b5ecc1c6
--- /dev/null
+++ b/search/processor_factory.hpp
@@ -0,0 +1,27 @@
+#pragma once
+
+#include "search/suggest.hpp"
+#include "search/v2/processor_v2.hpp"
+
+#include "std/unique_ptr.hpp"
+
+namespace storage
+{
+class CountryInfoGetter;
+}
+
+namespace search
+{
+class SearchProcessorFactory
+{
+public:
+ virtual ~SearchProcessorFactory() = default;
+
+ virtual unique_ptr<Processor> BuildProcessor(Index & index, CategoriesHolder const & categories,
+ vector<Suggest> const & suggests,
+ storage::CountryInfoGetter const & infoGetter)
+ {
+ return make_unique<v2::ProcessorV2>(index, categories, suggests, infoGetter);
+ }
+};
+} // namespace search