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

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

#include "generator/collection_base.hpp"
#include "generator/translator_interface.hpp"

#include <memory>

namespace generator
{
// This class allows you to work with a group of translators as with one.
class TranslatorCollection : public CollectionBase<std::shared_ptr<TranslatorInterface>>, public TranslatorInterface
{
public:
  // TranslatorInterface overrides:
  void Emit(OsmElement /* const */ & element) override;
  bool Finish() override;
  void GetNames(std::vector<std::string> & names) const override;
};
}  // namespace generator