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

emitter_restaurants.hpp « generator - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 35bcb2200fadcef6c8d1c4f7923600282797ccac (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
28
29
30
31
#include "generator/emitter_interface.hpp"
#include "generator/feature_builder.hpp"

#include <vector>
#include <string>

namespace generator
{
class EmitterRestaurants : public EmitterInterface
{
public:
  EmitterRestaurants(std::vector<FeatureBuilder1> & features);

  // EmitterInterface overrides:
  void Process(FeatureBuilder1 & fb) override;
  void GetNames(std::vector<std::string> & names) const override;
  bool Finish() override;

private:
  struct Stats
  {
    // Number of features of any "food type".
    uint32_t m_restaurantsPoi = 0;
    uint32_t m_restaurantsBuilding = 0;
    uint32_t m_unexpectedFeatures = 0;
  };

  std::vector<FeatureBuilder1> & m_features;
  Stats m_stats;
};
}  // namespace generator