Skip to content

v0.2.52..v0.2.53 changeset ImplicitTagUtils.cpp

Garret Voltz edited this page Feb 12, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/schema/ImplicitTagUtils.cpp b/hoot-core/src/main/cpp/hoot/core/schema/ImplicitTagUtils.cpp
index 88dfa5c..a855d31 100644
--- a/hoot-core/src/main/cpp/hoot/core/schema/ImplicitTagUtils.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/schema/ImplicitTagUtils.cpp
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 #include "ImplicitTagUtils.h"
 
@@ -37,6 +37,13 @@ namespace hoot
 QStringList ImplicitTagUtils::_nameCleaningTokens;
 QStringList ImplicitTagUtils::_streetTypes;
 
+bool ImplicitTagUtils::sortCommandExists()
+{
+  const QString cmd = "sort --help > /dev/null";
+  const int cmdExitStatus = std::system(cmd.toStdString().c_str());
+  return cmdExitStatus == 0;
+}
+
 void ImplicitTagUtils::cleanName(QString& name)
 {
   name = name.simplified();
Clone this wiki locally