diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-07 18:24:02 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-07 18:24:05 -0500 |
commit | 4f7417be2cefc5e57e1d7dca065349e8a476f599 (patch) | |
tree | b49da5da34d6765f51a005f667100413bafe7d52 /hscript/key.hh | |
parent | 242a0736d0da65c99967190dd548076cb53e5bff (diff) | |
download | horizon-4f7417be2cefc5e57e1d7dca065349e8a476f599.tar.gz horizon-4f7417be2cefc5e57e1d7dca065349e8a476f599.tar.bz2 horizon-4f7417be2cefc5e57e1d7dca065349e8a476f599.tar.xz horizon-4f7417be2cefc5e57e1d7dca065349e8a476f599.zip |
hscript: Add parameters to parseFromData
Diffstat (limited to 'hscript/key.hh')
-rw-r--r-- | hscript/key.hh | 7 |
1 files changed, 6 insertions, 1 deletions
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; |