blob: 1d8a8e5a81d166cbd4909c70f720a76b0883c9ac (
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
|
#pragma once
#include "generator/emitter_interface.hpp"
#include "generator/feature_generator.hpp"
#include "generator/generate_info.hpp"
#include "generator/polygonizer.hpp"
#include "generator/world_map_generator.hpp"
#include <memory>
#include <string>
#include <vector>
namespace generator
{
// EmitterSimple class is a simple emitter. It does not filter objects.
class EmitterSimple : public EmitterInterface
{
public:
explicit EmitterSimple(feature::GenerateInfo const & info);
// EmitterInterface overrides:
void GetNames(std::vector<std::string> & names) const override;
void operator()(FeatureBuilder1 & fb) override;
bool Finish() override { return true; }
private:
using SimpleGenerator = SimpleCountryMapGenerator<feature::Polygonizer<feature::FeaturesCollector>>;
std::unique_ptr<SimpleGenerator> m_regionGenerator;
};
} // namespace generator
|