-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.54..v0.2.55 changeset Settings.h
Garret Voltz edited this page Aug 14, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/util/Settings.h b/hoot-core/src/main/cpp/hoot/core/util/Settings.h
index 43bdd36..01eeaa7 100644
--- a/hoot-core/src/main/cpp/hoot/core/util/Settings.h
+++ b/hoot-core/src/main/cpp/hoot/core/util/Settings.h
@@ -154,6 +154,18 @@ public:
int size() const { return _settings.size(); }
+ /**
+ * Replace individual list entries in the current value of a configuration option with new list
+ * entries
+ *
+ * @param settings settings configuration owning the list option to modify
+ * @param optionName name of the list option to modify
+ * @param listReplacementEntryValues list of value replacement entries of the form:
+ * "<old optionValueEntry 1>-><new optionValueEntry 1>;<old optionValueEntry 2>-><new optionValueEntry 2>..."
+ */
+ static void replaceListOptionEntryValues(Settings& settings, const QString& optionName,
+ const QStringList& listReplacementEntryValues);
+
private:
static std::shared_ptr<Settings> _theInstance;