Skip to content

v0.2.53..v0.2.54 changeset ElementCountVisitor.h

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/ElementCountVisitor.h b/hoot-core/src/main/cpp/hoot/core/visitors/ElementCountVisitor.h
index c6db527..ca7ac72 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/ElementCountVisitor.h
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/ElementCountVisitor.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 ELEMENTCOUNTVISITOR_H
 #define ELEMENTCOUNTVISITOR_H
@@ -47,12 +47,14 @@ public:
 
   int getCount() const { return _count; }
 
-  double getStat() const { return _count; }
+  virtual double getStat() const { return _count; }
 
   virtual void visit(const ConstElementPtr& e);
 
   virtual QString getDescription() const { return "Counts the number of elements"; }
 
+  virtual std::string getClassName() const { return className(); }
+
 private:
 
   int _count;
Clone this wiki locally