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

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

#include "generator/osm_element.hpp"

#include <fstream>
#include <functional>
#include <string>

namespace generator
{
void MixFakeNodes(std::istream & stream, std::function<void(OsmElement &)> processor);

inline void MixFakeNodes(std::string const filePath, std::function<void(OsmElement &)> processor)
{
  std::ifstream stream(filePath);
  MixFakeNodes(stream, processor);
}
}  // namespace generator