blob: ab4d1d911289f0e2e052669d416e00425b5c1943 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#pragma once
#include "generator/emitter_interface.hpp"
#include "generator/tag_admixer.hpp"
#include "generator/translator.hpp"
#include <memory>
namespace feature
{
struct GenerateInfo;
} // namespace feature
namespace cache
{
class IntermediateDataReader;
} // namespace cache
namespace generator
{
// The TranslatorArea class implements translator for building countries.
class TranslatorCountry : public Translator
{
public:
explicit TranslatorCountry(std::shared_ptr<EmitterInterface> emitter, cache::IntermediateDataReader & cache,
feature::GenerateInfo const & info);
// TranslatorInterface overrides:
void Preprocess(OsmElement & element) override;
private:
void CollectFromRelations(OsmElement const & element);
TagAdmixer m_tagAdmixer;
TagReplacer m_tagReplacer;
};
// The TranslatorCountryWithAds class implements translator for building countries with advertising.
class TranslatorCountryWithAds : public TranslatorCountry
{
public:
explicit TranslatorCountryWithAds(std::shared_ptr<EmitterInterface> emitter,
cache::IntermediateDataReader & cache,
feature::GenerateInfo const & info);
// TranslatorInterface overrides:
void Preprocess(OsmElement & element) override;
bool Finish() override;
private:
OsmTagMixer m_osmTagMixer;
};
} // namespace generator
|