Skip to content

v0.2.53..v0.2.54 changeset AddMeasurementTagsVisitor.h

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/AddMeasurementTagsVisitor.h b/hoot-core/src/main/cpp/hoot/core/visitors/AddMeasurementTagsVisitor.h
index 07aea80..b7913e2 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/AddMeasurementTagsVisitor.h
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/AddMeasurementTagsVisitor.h
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 #ifndef ADDMEASUREMENTTAGSVISITOR_H
 #define ADDMEASUREMENTTAGSVISITOR_H
@@ -31,7 +31,6 @@
 #include <hoot/core/elements/ElementVisitor.h>
 #include <hoot/core/elements/Way.h>
 #include <hoot/core/elements/OsmMap.h>
-#include <hoot/core/info/OperationStatusInfo.h>
 #include <hoot/core/visitors/ElementOsmMapVisitor.h>
 
 // Geos
@@ -52,7 +51,7 @@ namespace hoot
  *    - the combined closed way members of a relationship where outer
  *      entries are added and inner entries are subtracted
  */
-class AddMeasurementTagsVisitor : public ElementOsmMapVisitor, public OperationStatusInfo
+class AddMeasurementTagsVisitor : public ElementOsmMapVisitor
 {
 public:
 
@@ -68,7 +67,10 @@ public:
 
   // OperationStatusInfo
   virtual QString getInitStatusMessage() const { return "Adding measurement tags..."; }
-  virtual QString getCompletedStatusMessage() const { return "Added tags to " + QString::number(_numAffected) + " elements"; }
+  virtual QString getCompletedStatusMessage() const
+  { return "Added tags to " + QString::number(_numAffected) + " elements"; }
+
+  virtual std::string getClassName() const { return className(); }
 
 private:
 
Clone this wiki locally