Skip to content

v0.2.53..v0.2.54 changeset SumNumericTagsVisitor.h

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/SumNumericTagsVisitor.h b/hoot-core/src/main/cpp/hoot/core/visitors/SumNumericTagsVisitor.h
index 8e43b65..3efe4bb 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/SumNumericTagsVisitor.h
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/SumNumericTagsVisitor.h
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2016, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 #ifndef SUM_NUMERIC_TAGS_VISITOR_H
 #define SUM_NUMERIC_TAGS_VISITOR_H
@@ -31,6 +31,7 @@
 #include <hoot/core/elements/ConstElementVisitor.h>
 #include <hoot/core/util/Configurable.h>
 #include <hoot/core/info/SingleStatistic.h>
+#include <hoot/core/util/StringUtils.h>
 
 namespace hoot
 {
@@ -67,6 +68,17 @@ public:
 
   virtual void setConfiguration(const Settings& conf);
 
+  virtual std::string getClassName() const { return className(); }
+
+  virtual QString getInitStatusMessage() const { return "Summing values of numeric tags..."; }
+
+  virtual QString getCompletedStatusMessage() const
+  {
+    return
+      "Summed " + StringUtils::formatLargeNumber(_numAffected) + " numeric tags on " +
+      StringUtils::formatLargeNumber(_numProcessed) + " features.";
+  }
+
 private:
 
   QStringList _keys;
Clone this wiki locally