summaryrefslogtreecommitdiff
path: root/hscript/key.hh
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-07 19:10:34 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-07 19:10:34 -0500
commit476301116a3ce5818c157ff7efda83ce79b16b81 (patch)
tree76f97c18b2f3d87182525bd9afad5cfe7e46ccfd /hscript/key.hh
parent92b2d500937a985275cee574ba10803b8e949356 (diff)
downloadhorizon-476301116a3ce5818c157ff7efda83ce79b16b81.tar.gz
horizon-476301116a3ce5818c157ff7efda83ce79b16b81.tar.bz2
horizon-476301116a3ce5818c157ff7efda83ce79b16b81.tar.xz
horizon-476301116a3ce5818c157ff7efda83ce79b16b81.zip
hscript: Generalise BooleanKey failure mode for all keys
Diffstat (limited to 'hscript/key.hh')
-rw-r--r--hscript/key.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/hscript/key.hh b/hscript/key.hh
index 4817ea5..9c7755b 100644
--- a/hscript/key.hh
+++ b/hscript/key.hh
@@ -63,10 +63,13 @@ protected:
/*! Parse a string into a boolean.
* @param what The string to attempt parsing.
+ * @param where The location of the key.
+ * @param key The name of the key.
* @param out Output variable: will contain the value.
* @returns true if value is parsed successfully, false otherwise.
*/
- static bool parse(const std::string what, bool *out);
+ static bool parse(const std::string what, const std::string where,
+ const std::string key, bool *out);
public:
/*! Determines if the Key is set or not.
* @returns true if the Key is truthy, false otherwise.