Skip to content

v0.2.49..v0.2.50 changeset WayMatchStringMapping.h

Garret Voltz edited this page Nov 6, 2019 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/algorithms/linearreference/WayMatchStringMapping.h b/hoot-core/src/main/cpp/hoot/core/algorithms/linearreference/WayMatchStringMapping.h
index ffcb5ce..d9d5474 100644
--- a/hoot-core/src/main/cpp/hoot/core/algorithms/linearreference/WayMatchStringMapping.h
+++ b/hoot-core/src/main/cpp/hoot/core/algorithms/linearreference/WayMatchStringMapping.h
@@ -87,6 +87,9 @@ public:
   virtual void setWayString2(const WayStringPtr& ws2) = 0;
   void setWayString(WayNumber way, const WayStringPtr& ws)
   { (way == WayNumber::Way1) ? setWayString1(ws) : setWayString2(ws); }
+
+  QString toString()
+  { return "1: " + getWayString1()->toString() + "; 2: " + getWayString2()->toString(); }
 };
 
 typedef std::shared_ptr<WayMatchStringMapping> WayMatchStringMappingPtr;
Clone this wiki locally