Skip to content

v0.2.54..v0.2.55 changeset RemoveInvalidMultilineStringMembersVisitor.h

Garret Voltz edited this page Aug 14, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/RemoveInvalidMultilineStringMembersVisitor.h b/hoot-core/src/main/cpp/hoot/core/visitors/RemoveInvalidMultilineStringMembersVisitor.h
index 749ccd3..3442c30 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/RemoveInvalidMultilineStringMembersVisitor.h
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/RemoveInvalidMultilineStringMembersVisitor.h
@@ -28,11 +28,18 @@
 #define REMOVEINVALIDMULTILINESTRINGMEMBERSVISITOR_H
 
 //  hoot
+#include <hoot/core/elements/OsmMap.h>
 #include <hoot/core/visitors/ElementOsmMapVisitor.h>
+#include <hoot/core/util/StringUtils.h>
 
 namespace hoot
 {
 
+/**
+ * Removes invalid multiline string relation members
+ *
+ * These are sometimes produced as an artifact from cropping or conflation
+ */
 class RemoveInvalidMultilineStringMembersVisitor : public ElementOsmMapVisitor
 {
 public:
@@ -48,12 +55,19 @@ public:
 
   // finish; wasn't obvious how to count the total affected - #2933
   virtual QString getCompletedStatusMessage() const
-  { return ""; }
+  {
+    return
+      "\tRemoved " + StringUtils::formatLargeNumber(_numAffected) + " invalid relations / " +
+      StringUtils::formatLargeNumber(_map->getRelationCount()) + " total relations."; }
 
   virtual QString getDescription() const
   { return "Removes invalid multiline string relation members"; }
 
   virtual std::string getClassName() const { return className(); }
+
+private:
+
+  int _taskStatusUpdateInterval;
 };
 
 }
Clone this wiki locally