blob: 99ff70581b4b4cfa6a072ea6c4be3530ef7d0908 (
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
|
#pragma once
#include "std/fstream.hpp"
#include "std/string.hpp"
class RelationElement;
namespace routing
{
class RestrictionWriter
{
public:
void Open(string const & fullPath);
bool IsOpened();
/// \brief Writes |relationElement| to |m_stream| if |relationElement| is a supported restriction.
/// \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:
ofstream m_stream;
};
} // namespace routing
|