Skip to content

v0.2.48..v0.2.49 changeset ElementCriterion.h

Garret Voltz edited this page Oct 2, 2019 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/criterion/ElementCriterion.h b/hoot-core/src/main/cpp/hoot/core/criterion/ElementCriterion.h
index 23573ff..39641b7 100644
--- a/hoot-core/src/main/cpp/hoot/core/criterion/ElementCriterion.h
+++ b/hoot-core/src/main/cpp/hoot/core/criterion/ElementCriterion.h
@@ -50,7 +50,7 @@ class Element;
  * meet the criteria, rather than apply it to those that don't meet the criteria). Look at the
  * NotCriterion for an example to negate criterion.
  *
- * Also see: ConflatableElementCriterion.
+ * Also see: ConflatableElementCriterion and GeometryTypeCriterion.
  */
 class ElementCriterion : public ApiEntityInfo
 {
@@ -69,6 +69,14 @@ public:
    * Use the clone pattern for all classes based on the ElementCriterion class
    */
   virtual std::shared_ptr<ElementCriterion> clone() = 0;
+
+  /**
+   * Returns a string uniquely identifying the criterion. May contain information about the data
+   * contained within the criterion.
+   *
+   * @return a descriptive string
+   */
+  virtual QString toString() const = 0;
 };
 
 typedef std::shared_ptr<ElementCriterion> ElementCriterionPtr;
Clone this wiki locally