From 4f7417be2cefc5e57e1d7dca065349e8a476f599 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 7 Oct 2019 18:24:02 -0500 Subject: hscript: Add parameters to parseFromData --- hscript/key.hh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hscript/key.hh b/hscript/key.hh index 4705c59..5e09fab 100644 --- a/hscript/key.hh +++ b/hscript/key.hh @@ -27,9 +27,14 @@ public: virtual ~Key(); /*! Create the Key object with the specified data as the entire value. + * @param data The value associated with the key. + * @param lineno The line number where the key occurs. + * @param errors Output variable: if not nullptr, ++ on each error. + * @param warnings Output variable: if not nullptr, ++ on each warning. * @returns nullptr if data is unparsable, otherwise a pointer to a Key. */ - static Key *parseFromData(std::string, int*, int*) { return nullptr; } + static Key *parseFromData(std::string data, int lineno, int *errors, + int *warnings) { return nullptr; } /*! Determines if the data associated with the Key is valid. */ virtual bool validate() = 0; -- cgit v1.2.3-70-g09d2