v0.2.48..v0.2.49 changeset ApiEntityDisplayInfo.cpp
Garret Voltz edited this page Oct 2, 2019
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/info/ApiEntityDisplayInfo.cpp b/hoot-core/src/main/cpp/hoot/core/info/ApiEntityDisplayInfo.cpp
index 8021cb3..7f4947e 100644
--- a/hoot-core/src/main/cpp/hoot/core/info/ApiEntityDisplayInfo.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/info/ApiEntityDisplayInfo.cpp
@@ -48,6 +48,8 @@
#include <hoot/core/conflate/merging/Merger.h>
#include <hoot/core/algorithms/WayJoiner.h>
#include <hoot/core/criterion/ConflatableElementCriterion.h>
+#include <hoot/core/criterion/ElementCriterionConsumer.h>
+
// Qt
#include <QTextStream>
@@ -162,7 +164,16 @@ QString ApiEntityDisplayInfo::getDisplayInfo(const QString& apiEntityType)
ts << _getApiEntities<ElementVisitor, ElementVisitor>(
ElementVisitor::className(), "visitor", true, MAX_NAME_SIZE);
}
- // All of this from here on down is pretty repetitive :-(
+ // All of this from here on down is pretty repetitive :-( Maybe we can make it better.
+ else if (apiEntityType == "filters")
+ {
+ // This is the criterion portion of --operators only.
+ msg += "):";
+ msg.prepend("Filters");
+ ts << msg << endl;
+ ts << _getApiEntities<ElementCriterion, ElementCriterion>(
+ ElementCriterion::className(), "criterion", true, MAX_NAME_SIZE);
+ }
else if (apiEntityType == "feature-extractors")
{
msg += "):";
@@ -256,6 +267,22 @@ QString ApiEntityDisplayInfo::getDisplayInfo(const QString& apiEntityType)
ts << _getApiEntities<ElementCriterion, ConflatableElementCriterion>(
ElementCriterion::className(), "conflatable criteria", false, MAX_NAME_SIZE - 10);
}
+ else if (apiEntityType == "criterion-consumers")
+ {
+ msg += "):";
+ msg.prepend("Criterion Consumers");
+ ts << msg << endl;
+ ts << _getApiEntities<ElementCriterionConsumer, ElementCriterionConsumer>(
+ ElementCriterionConsumer::className(), "criterion consumer", false, MAX_NAME_SIZE - 10);
+ }
+ else if (apiEntityType == "geometry-type-criteria")
+ {
+ msg += "):";
+ msg.prepend("Geometry Type Criteria");
+ ts << msg << endl;
+ ts << _getApiEntities<ElementCriterion, GeometryTypeCriterion>(
+ ElementCriterion::className(), "geometry type criteria", false, MAX_NAME_SIZE - 10);
+ }
return ts.readAll();
}