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

translator_interface.hpp « generator - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8a62906b15d877e5d7a006d4267c5e41fa760e09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include <string>
#include <vector>

struct OsmElement;

namespace generator
{
// Implementing this interface allows an object to create intermediate data from OsmElement.
class TranslatorInterface
{
public:
  virtual ~TranslatorInterface() = default;

  virtual void Preprocess(OsmElement &) {}
  virtual void Emit(OsmElement & element) = 0;
  virtual bool Finish() = 0;
  virtual void GetNames(std::vector<std::string> & names) const = 0;
};
}  // namespace generator