Skip to content

v0.2.53..v0.2.54 changeset RemoveInvalidRelationVisitor.h

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/RemoveInvalidRelationVisitor.h b/hoot-core/src/main/cpp/hoot/core/visitors/RemoveInvalidRelationVisitor.h
index 565da48..ed32ad7 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/RemoveInvalidRelationVisitor.h
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/RemoveInvalidRelationVisitor.h
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 
 #ifndef REMOVE_INVALID_RELATION_VISITOR_H
@@ -31,17 +31,18 @@
 //  Hoot
 #include <hoot/core/elements/Relation.h>
 #include <hoot/core/visitors/ElementOsmMapVisitor.h>
-#include <hoot/core/info/OperationStatusInfo.h>
 
 namespace hoot
 {
 
 /**
- * Remove all duplicate linestrings from multilinestring relations and
- * and multilinestring relation that has less that two members thus
- * making them not "multi" linestrings.
+ * Remove all duplicate linestrings from multilinestring relations and multilinestring relations
+ * that have less than two members, thus making them not "multi" linestrings.
+ *
+ * TODO: split out duplicate review relation vis into its own class; rename this class to
+ * RemoveDuplicateMultilineStringRelationVisitor
  */
-class RemoveInvalidRelationVisitor : public ElementOsmMapVisitor, public OperationStatusInfo
+class RemoveInvalidRelationVisitor : public ElementOsmMapVisitor
 {
 public:
 
@@ -63,6 +64,8 @@ public:
     return "Removes duplicate ways in relations and invalid relations";
   }
 
+  virtual std::string getClassName() const { return className(); }
+
 private:
 
   // one of the few OperatStatusInfo implementers recording two stats, so we'll add an extra var
Clone this wiki locally