blob: bf22ba6c826c914c830c03180413c236bdb4bf9a (
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
|
#pragma once
#include <string>
struct OsmElement;
class RelationElement;
namespace feature
{
class FeatureBuilder;
} // namespace feature
namespace base
{
class GeoObjectId;
} // namespace base
namespace generator
{
// Implementing this interface allows an object to collect data from RelationElement,
// OsmElement and FeatureBuilder1 elements.
class CollectorInterface
{
public:
virtual ~CollectorInterface() = default;
virtual void Collect(OsmElement const &) {}
virtual void CollectRelation(RelationElement const &) {}
virtual void CollectFeature(feature::FeatureBuilder const &, OsmElement const &) {}
virtual void Save() = 0;
};
} // namespace generator
|