blob: 565fc113b7dbdee6ac09f4395fd7fc610d35e40d (
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
|
#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 TranslatorWorld class implements translator for building the world.
class TranslatorWorld : public Translator
{
public:
explicit TranslatorWorld(std::shared_ptr<EmitterInterface> emitter, cache::IntermediateDataReader & cache,
feature::GenerateInfo const & info);
// TranslatorInterface overrides:
void Preprocess(OsmElement & element) override;
private:
TagAdmixer m_tagAdmixer;
TagReplacer m_tagReplacer;
};
// The TranslatorWorldWithAds class implements translator for building the world with advertising.
class TranslatorWorldWithAds : public TranslatorWorld
{
public:
explicit TranslatorWorldWithAds(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
|