diff --git a/hoot-core/src/main/cpp/hoot/core/criterion/ElementInIdListCriterion.h b/hoot-core/src/main/cpp/hoot/core/criterion/ElementInIdListCriterion.h
index cb3d10d..6f214a1 100644
--- a/hoot-core/src/main/cpp/hoot/core/criterion/ElementInIdListCriterion.h
+++ b/hoot-core/src/main/cpp/hoot/core/criterion/ElementInIdListCriterion.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 ELEMENTINIDLISTCRITERION_H
@@ -39,7 +39,8 @@ namespace hoot
/**
* Identifies elements in a list of IDs
*
- * @todo We could probably replace this with ElementIdCriterion.
+ * @todo We could probably replace this with ElementIdCriterion. If not, rename it to
+ * ElementInIdCollectionCriterion.
*/
class ElementInIdListCriterion : public ElementCriterion
{
@@ -48,7 +49,8 @@ public:
static std::string className() { return "hoot::ElementInIdListCriterion"; }
ElementInIdListCriterion() {}
- explicit ElementInIdListCriterion(const std::vector<long>& ids);
+ explicit ElementInIdListCriterion(const ElementType& elementType, const std::vector<long>& ids);
+ ElementInIdListCriterion(const std::vector<ElementId>& ids);
virtual bool isSatisfied(const ConstElementPtr& e) const override;
@@ -62,7 +64,7 @@ public:
private:
- std::set<long> _ids;
+ std::set<ElementId> _ids;
};
}