v0.2.53..v0.2.54 changeset RandomElementRemover.h
Garret Voltz edited this page Mar 31, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/visitors/RandomElementRemover.h b/hoot-core/src/main/cpp/hoot/core/visitors/RandomElementRemover.h
index a1fd904..efc4a46 100644
--- a/hoot-core/src/main/cpp/hoot/core/visitors/RandomElementRemover.h
+++ b/hoot-core/src/main/cpp/hoot/core/visitors/RandomElementRemover.h
@@ -22,13 +22,12 @@
* 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 RANDOM_ELEMENT_REMOVER_H
#define RANDOM_ELEMENT_REMOVER_H
// hoot
-#include <hoot/core/info/OperationStatusInfo.h>
#include <hoot/core/util/Configurable.h>
#include <hoot/core/visitors/ElementOsmMapVisitor.h>
#include <hoot/core/util/RngConsumer.h>
@@ -40,7 +39,7 @@ namespace hoot
* Randomly removes elements from a map
*/
class RandomElementRemover : public ElementOsmMapVisitor, public RngConsumer,
- public Configurable, public OperationStatusInfo
+ public Configurable
{
public:
@@ -71,6 +70,8 @@ public:
virtual QString getCompletedStatusMessage() const
{ return "Randomly removed " + QString::number(_numAffected) + " elements"; }
+ virtual std::string getClassName() const { return className(); }
+
private:
boost::minstd_rand* _rng;