Skip to content

v0.2.53..v0.2.54 changeset RemoveMissingElementsVisitor.h

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/RemoveMissingElementsVisitor.h b/hoot-core/src/main/cpp/hoot/core/visitors/RemoveMissingElementsVisitor.h
index 6845956..438b31e 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/RemoveMissingElementsVisitor.h
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/RemoveMissingElementsVisitor.h
@@ -22,23 +22,22 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 #ifndef REMOVEMISSINGELEMENTSVISITOR_H
 #define REMOVEMISSINGELEMENTSVISITOR_H
 
 #include <hoot/core/elements/OsmMapConsumer.h>
 #include <hoot/core/visitors/ReportMissingElementsVisitor.h>
-#include <hoot/core/info/OperationStatusInfo.h>
+#include <hoot/core/util/StringUtils.h>
 
 namespace hoot
 {
 
 /**
- * Removes non-existent element references from relations or ways with negative IDs.
+ * Removes non-existent element references from relations or ways
  */
-class RemoveMissingElementsVisitor : public ConstElementVisitor, public OsmMapConsumer,
-  public OperationStatusInfo
+class RemoveMissingElementsVisitor : public ConstElementVisitor, public OsmMapConsumer
 {
 public:
 
@@ -48,7 +47,6 @@ public:
                                const int maxReport = Log::getWarnMessageLimit());
 
   virtual void setOsmMap(OsmMap* map) { _v->setOsmMap(map);}
-
   virtual void setOsmMap(const OsmMap* /*map*/)
   { throw NotImplementedException("Set Map with const is not supported"); }
 
@@ -58,11 +56,16 @@ public:
   { return "Removing references to elements that do not exist..."; }
 
   virtual QString getCompletedStatusMessage() const
-  { return "Removed " + QString::number(_numAffected) + " missing element child references"; }
+  {
+    return
+      "Removed " + StringUtils::formatLargeNumber(_numAffected) +
+      " missing element child references"; }
 
   virtual QString getDescription() const
   { return "Removes references to any elements that do not exist"; }
 
+  virtual std::string getClassName() const { return className(); }
+
 private:
 
   std::shared_ptr<ReportMissingElementsVisitor> _v;
Clone this wiki locally