diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-03 15:22:25 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-03 15:22:25 +0100 |
commit | 3d1acdea884ce748be20c1fafb8ec15510235f57 (patch) | |
tree | d4d6eb9c7e11bffe7e55e788b4414a1138334ad9 /src/core/common/VariantReader.hpp | |
parent | 75513b55ad721990ae53f9c2c2638c4bb5ef000a (diff) |
Implemented storing SourceLocation of parsed Variants
Diffstat (limited to 'src/core/common/VariantReader.hpp')
-rw-r--r-- | src/core/common/VariantReader.hpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/common/VariantReader.hpp b/src/core/common/VariantReader.hpp index d939415..7f00251 100644 --- a/src/core/common/VariantReader.hpp +++ b/src/core/common/VariantReader.hpp @@ -277,6 +277,10 @@ public: * @param str is the string from which the value should be read. * @param logger is the logger instance to which errors or warnings will be * written. + * @param sourceId is an optional descriptor of the source file from which + * the element is being read. + * @param offs is the by offset in the source file at which the string + * starts. * @return a pair indicating whether the operation was successful and the * extracted variant value. Note that the variant value most times contains * some meaningful data that can be worked with even if the operation was @@ -285,8 +289,9 @@ public: * variant.) Information on why the operation has failed is passed to the * logger. */ - static std::pair<bool, Variant> parseGenericString(const std::string &str, - Logger &logger); + static std::pair<bool, Variant> parseGenericString( + const std::string &str, Logger &logger, + SourceId sourceId = InvalidSourceId, size_t offs = 0); }; } |