Skip to content

v0.2.50..v0.2.51 changeset AttributeValueCriterion.cpp

Garret Voltz edited this page Jan 15, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/criterion/AttributeValueCriterion.cpp b/hoot-core/src/main/cpp/hoot/core/criterion/AttributeValueCriterion.cpp
index c30adda..4150ed8 100644
--- a/hoot-core/src/main/cpp/hoot/core/criterion/AttributeValueCriterion.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/criterion/AttributeValueCriterion.cpp
@@ -119,6 +119,8 @@ bool AttributeValueCriterion::isSatisfied(const ConstElementPtr& e) const
       return _satisfiesComparison(QVariant((qlonglong)e->getUid()));
     case ElementAttributeType::Version:
       return _satisfiesComparison(QVariant((qlonglong)e->getVersion()));
+    case ElementAttributeType::Id:
+      return _satisfiesComparison(QVariant((qlonglong)e->getId()));
     default:
       throw IllegalArgumentException("Invalid attribute type: " + _attributeType.toString());
   }
@@ -132,6 +134,8 @@ bool AttributeValueCriterion::_satisfiesComparison(const QVariant& val) const
   {
     bool ok = false;
     const double numericVal = val.toDouble(&ok);
+    LOG_VART(numericVal);
+    LOG_VART(_comparisonVal);
 
     if (!ok)
     {
Clone this wiki locally