Welcome to mirror list, hosted at ThFree Co, Russian Federation.

collector_interface.hpp « generator - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4ada6f923c1239a8b52ee7514875fd17954b2a17 (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
#pragma once

#include <string>

struct OsmElement;
class FeatureBuilder1;
class RelationElement;
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(FeatureBuilder1 const &, OsmElement const &) {}
  virtual void Save() = 0;
};
}  // namespace generator