Skip to content

v0.2.53..v0.2.54 changeset NoInformationElementRemover.h

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/ops/NoInformationElementRemover.h b/hoot-core/src/main/cpp/hoot/core/ops/NoInformationElementRemover.h
index b28c38d..1590f91 100644
--- a/hoot-core/src/main/cpp/hoot/core/ops/NoInformationElementRemover.h
+++ b/hoot-core/src/main/cpp/hoot/core/ops/NoInformationElementRemover.h
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2015, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 
 #ifndef NOINFORMATIONELEMENTREMOVER_H
@@ -30,7 +30,6 @@
 
 // Hoot
 #include <hoot/core/ops/OsmMapOperation.h>
-#include <hoot/core/info/OperationStatusInfo.h>
 
 namespace hoot
 {
@@ -41,31 +40,33 @@ namespace hoot
    another element (e.g. only contains UUID and source, but not FCODE equivalent or other
    informative tags).
  */
-class NoInformationElementRemover : public OsmMapOperation, public OperationStatusInfo
+class NoInformationElementRemover : public OsmMapOperation
 {
-  public:
+public:
 
-    static std::string className() { return "hoot::NoInformationElementRemover"; }
+  static std::string className() { return "hoot::NoInformationElementRemover"; }
 
-    NoInformationElementRemover();
+  NoInformationElementRemover();
 
-    /**
-      @see OsmMapOperation
-    */
-    void apply(std::shared_ptr<OsmMap>& map);
+  /**
+    @see OsmMapOperation
+  */
+  void apply(std::shared_ptr<OsmMap>& map);
 
-    virtual QString getInitStatusMessage() const
-    { return "Removing elements with no information tags..."; }
+  virtual QString getInitStatusMessage() const
+  { return "Removing elements with no information tags..."; }
 
-    virtual QString getCompletedStatusMessage() const
-    { return "Removed " + QString::number(_numAffected) + " elements with no information tags"; }
+  virtual QString getCompletedStatusMessage() const
+  { return "Removed " + QString::number(_numAffected) + " elements with no information tags"; }
 
-    virtual QString getDescription() const
-    { return "Removes elements containing no information in tags"; }
+  virtual QString getDescription() const
+  { return "Removes elements containing no information in tags"; }
 
-  protected:
+  virtual std::string getClassName() const { return className(); }
 
-    std::shared_ptr<OsmMap> _map;
+protected:
+
+  std::shared_ptr<OsmMap> _map;
 };
 
 }
Clone this wiki locally