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

restriction_writer.hpp « generator - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f2eab58160cd2d1a49a294840cc49d7df8142123 (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 <fstream>
#include <string>

class RelationElement;

namespace routing
{
class RestrictionWriter
{
public:
  void Open(std::string const & fullPath);

  /// \brief Writes |relationElement| to |m_stream| if |relationElement| is a supported restriction.
  /// See restriction_generator.hpp for the description of the format.
  /// \note For the time being only line-point-line restrictions are processed. The other
  /// restrictions are ignored.
  // @TODO(bykoianko) It's necessary to process all kind of restrictions.
  void Write(RelationElement const & relationElement);

private:
  bool IsOpened() const;

  std::ofstream m_stream;
};
}  // namespace routing