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

search_query_factory.hpp « search - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2e96d8d5273bcbc3217e97808b09f6f0332d2b17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include "search_query.hpp"

#include "std/unique_ptr.hpp"

namespace search
{
class SearchQueryFactory
{
public:
  virtual ~SearchQueryFactory() = default;

  virtual unique_ptr<Query> BuildSearchQuery(
      Index const * index, CategoriesHolder const * categories,
      Query::TStringsToSuggestVector const * stringsToSuggest,
      storage::CountryInfoGetter const * infoGetter)
  {
    return make_unique<Query>(index, categories, stringsToSuggest, infoGetter);
  }
};
}  // namespace search