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

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-11-16 08:26:16 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-11-25 10:25:11 +0300
commit91ead6af9046745416b136c39561d1ba598f1b07 (patch)
tree6b8eff31b91ba709b6f943ea998256eea2181a2c /routing/geometry.cpp
parenteb1c85bce50a6d98fa92b1cec278643b26b59946 (diff)
Generating restriction, implementaion implementation using them at runtimeĀ§:wq, applying them on index graph and tests on it.
Diffstat (limited to 'routing/geometry.cpp')
-rw-r--r--routing/geometry.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/routing/geometry.cpp b/routing/geometry.cpp
index 218aa0eb03..556911a4c6 100644
--- a/routing/geometry.cpp
+++ b/routing/geometry.cpp
@@ -6,6 +6,8 @@
#include "base/assert.hpp"
+#include "std/iostream.hpp"
+
using namespace routing;
namespace
@@ -83,6 +85,17 @@ RoadGeometry const & Geometry::GetRoad(uint32_t featureId) const
return road;
}
+string DebugPrint(RoadGeometry const & roadGeometry)
+{
+ stringstream str;
+ str << "RoadGeometry [ m_isRoad: " << roadGeometry.m_isRoad
+ << ", m_isOneWay: " << roadGeometry.m_isOneWay
+ << ", m_speed: " << roadGeometry.m_speed
+ << ", m_points: " << DebugPrint(roadGeometry.m_points)
+ << " ]";
+ return str.str();
+}
+
unique_ptr<GeometryLoader> CreateGeometryLoader(Index const & index, MwmSet::MwmId const & mwmId,
shared_ptr<IVehicleModel> vehicleModel)
{