diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2017-12-07 16:39:22 +0300 |
---|---|---|
committer | Yuri Gorshenin <mipt.vi002@gmail.com> | 2017-12-20 14:01:22 +0300 |
commit | 2f2f006c00f47ff72f5ca93223d5bd2b51959d41 (patch) | |
tree | 58089c16394503aa013f181579df421603a334a7 /routing_common | |
parent | e17a7a48659fb6bd9d336f5ad3e3f973e26e4631 (diff) |
Deserializing form mwm transit information for cross mwm generation in GraphData
Diffstat (limited to 'routing_common')
-rw-r--r-- | routing_common/transit_graph_data.cpp | 10 | ||||
-rw-r--r-- | routing_common/transit_graph_data.hpp | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/routing_common/transit_graph_data.cpp b/routing_common/transit_graph_data.cpp index a5faa563d5..e20c0e1bb7 100644 --- a/routing_common/transit_graph_data.cpp +++ b/routing_common/transit_graph_data.cpp @@ -299,6 +299,16 @@ void GraphData::DeserializeForRendering(Reader & reader) ReadShapes(src); } +void GraphData::DeserializeForCrossMwm(Reader & reader) +{ + NonOwningReaderSource src(reader); + + ReadHeader(src); + ReadStops(src); + src.Skip(m_header.m_edgesOffset - src.Pos()); + ReadEdges(src); +} + void GraphData::AppendTo(GraphData const & rhs) { ::Append(rhs.m_stops, m_stops); diff --git a/routing_common/transit_graph_data.hpp b/routing_common/transit_graph_data.hpp index a17da5f2a6..8a1768c38a 100644 --- a/routing_common/transit_graph_data.hpp +++ b/routing_common/transit_graph_data.hpp @@ -130,6 +130,7 @@ public: void DeserializeAll(Reader & reader); void DeserializeForRouting(Reader & reader); void DeserializeForRendering(Reader & reader); + void DeserializeForCrossMwm(Reader & reader); void AppendTo(GraphData const & rhs); void Clear(); bool IsValid() const; |