-
Notifications
You must be signed in to change notification settings - Fork 75
v0.2.53..v0.2.54 changeset RemoveRoundabouts.h
Garret Voltz edited this page Mar 31, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/ops/RemoveRoundabouts.h b/hoot-core/src/main/cpp/hoot/core/ops/RemoveRoundabouts.h
index 4d8db30..df5540f 100644
--- a/hoot-core/src/main/cpp/hoot/core/ops/RemoveRoundabouts.h
+++ b/hoot-core/src/main/cpp/hoot/core/ops/RemoveRoundabouts.h
@@ -22,7 +22,7 @@
* This will properly maintain the copyright information. DigitalGlobe
* copyrights will be updated automatically.
*
- * @copyright Copyright (C) 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
*/
#ifndef REMOVEROUNDABOUTS_H
@@ -31,7 +31,7 @@
// Hoot
#include <hoot/core/ops/OsmMapOperation.h>
#include <hoot/core/conflate/highway/Roundabout.h>
-#include <hoot/core/info/OperationStatusInfo.h>
+#include <hoot/core/criterion/HighwayCriterion.h>
// Qt
#include <QMultiHash>
@@ -56,7 +56,7 @@ class Way;
* Note that it is pretty important to run this operation before doing
* some other things to the map, like splitting intersections!
*/
-class RemoveRoundabouts : public OsmMapOperation, public OperationStatusInfo
+class RemoveRoundabouts : public OsmMapOperation
{
public:
@@ -92,6 +92,14 @@ public:
virtual QString getCompletedStatusMessage() const
{ return "Removed " + QString::number(_numAffected) + " road roundabouts"; }
+ /**
+ * @see FilteredByCriteria
+ */
+ virtual QStringList getCriteria() const
+ { return QStringList(QString::fromStdString(HighwayCriterion::className())); }
+
+ virtual std::string getClassName() const { return className(); }
+
private:
std::shared_ptr<OsmMap> _pMap;