forked from organicmaps/organicmaps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtranslator_complex.hpp
40 lines (31 loc) · 1.07 KB
/
translator_complex.hpp
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
#pragma once
#include "generator/filter_interface.hpp"
#include "generator/hierarchy.hpp"
#include "generator/processor_interface.hpp"
#include "generator/tag_admixer.hpp"
#include "generator/translator.hpp"
#include <memory>
#include <string>
namespace cache
{
class IntermediateData;
} // namespace cache
namespace generator
{
// The TranslatorComplex class implements translator for building complexes.
class TranslatorComplex : public Translator
{
public:
explicit TranslatorComplex(std::shared_ptr<FeatureProcessorInterface> const & processor,
std::shared_ptr<cache::IntermediateData> const & cache,
feature::GenerateInfo const & info);
// TranslatorInterface overrides:
void Preprocess(OsmElement & element) override;
std::shared_ptr<TranslatorInterface> Clone() const override;
void Merge(TranslatorInterface const & other) override;
void MergeInto(TranslatorComplex & other) const override;
protected:
using Translator::Translator;
std::shared_ptr<TagReplacer> m_tagReplacer;
};
} // namespace generator