summaryrefslogtreecommitdiff
path: root/include/configreader.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/configreader.h')
-rw-r--r--include/configreader.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/configreader.h b/include/configreader.h
index a82420b4e..b603f2e10 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -43,6 +43,8 @@ class CoreExport ConfigTag : public refcountbase
const int src_line;
/** Get the value of an option, using def if it does not exist */
+ std::string getString(const std::string& key, const std::string& def, const TR1NS::function<bool(const std::string&)>& validator);
+ /** Get the value of an option, using def if it does not exist */
std::string getString(const std::string& key, const std::string& def = "", size_t minlen = 0, size_t maxlen = UINT32_MAX);
/** Get the value of an option, using def if it does not exist */
long getInt(const std::string& key, long def, long min = LONG_MIN, long max = LONG_MAX);