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

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

#include <string>
#include <vector>

class FeatureParams;
namespace feature
{
class FeatureBuilder;
}  // namespace feature

namespace generator
{
// Implementing this interface allows an object to process FeatureBuilder1 objects and broadcast them.
class EmitterInterface
{
public:
  virtual ~EmitterInterface() = default;

  // This method is used by OsmTranslator to pass |fb| to Emitter for further processing.
  virtual void Process(feature::FeatureBuilder & fb) = 0;
  // Finish is used in GenerateFeatureImpl to make whatever work is needed after all OsmElements
  // are processed.
  virtual bool Finish() = 0;
  // Sets buckets (mwm names).
  // TODO(syershov): Make this topic clear.
  virtual void GetNames(std::vector<std::string> & names) const = 0;
};
}  // namespace generator