-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.48..v0.2.49 changeset NotCriterion.cpp
Garret Voltz edited this page Oct 2, 2019
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/criterion/NotCriterion.cpp b/hoot-core/src/main/cpp/hoot/core/criterion/NotCriterion.cpp
index dc374bb..384bb7c 100644
--- a/hoot-core/src/main/cpp/hoot/core/criterion/NotCriterion.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/criterion/NotCriterion.cpp
@@ -55,6 +55,27 @@ void NotCriterion::addCriterion(const ElementCriterionPtr& e)
_child = e;
}
+void NotCriterion::setConfiguration(const Settings& conf)
+{
+ std::shared_ptr<Configurable> configurable =
+ std::dynamic_pointer_cast<Configurable>(_child);
+ if (configurable)
+ {
+ configurable->setConfiguration(conf);
+ LOG_DEBUG("Set config on: " << _child->toString());
+ }
+}
+
+void NotCriterion::setOsmMap(const OsmMap* map)
+{
+ std::shared_ptr<ConstOsmMapConsumer> mapConsumer =
+ std::dynamic_pointer_cast<ConstOsmMapConsumer>(_child);
+ if (mapConsumer)
+ {
+ mapConsumer->setOsmMap(map);
+ }
+}
+
/**
* Returns true if the element satisfies the criterion.
*/
@@ -64,4 +85,9 @@ bool NotCriterion::isSatisfied(const ConstElementPtr& e) const
return !_child->isSatisfied(e);
}
+QString NotCriterion::toString() const
+{
+ return "NotCriterion(" + _child->toString() + ")";
+}
+
}