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

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

#include "generator/filter_interface.hpp"
#include "generator/popular_places_section_builder.hpp"

#include <string>

namespace generator
{
class FilterWorld : public FilterInterface
{
public:
  explicit FilterWorld(std::string const & popularityFilename);

  // FilterInterface overrides:
  std::shared_ptr<FilterInterface> Clone() const override;

  bool IsAccepted(feature::FeatureBuilder const & feature) const override;

  static bool IsInternationalAirport(feature::FeatureBuilder const & fb);
  static bool IsGoodScale(feature::FeatureBuilder const & fb);
  static bool IsPopularAttraction(feature::FeatureBuilder const & fb, std::string const & popularityFilename);

private:
  std::string m_popularityFilename;
};
}  // namespace generator