From 4c8cf263e280bd1e59241b7a783d61e6621a2c5e Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Fri, 13 Feb 2015 11:34:24 +0100 Subject: added VariantReader::parseBool --- src/core/common/VariantReader.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/core/common/VariantReader.hpp') diff --git a/src/core/common/VariantReader.hpp b/src/core/common/VariantReader.hpp index 6b157d8..6a87723 100644 --- a/src/core/common/VariantReader.hpp +++ b/src/core/common/VariantReader.hpp @@ -132,6 +132,19 @@ public: CharReader &reader, Logger &logger, const std::unordered_set &delims); + /** + * Parses a bool from the given CharReader instance (the strings "true" or + * "false"). + * + * @param reader is a reference to the CharReader instance which is + * the source for the character data. The reader will be positioned after + * the bool. + * @param logger is the logger instance that should be used to log error + * messages and warnings. + */ + static std::pair parseBool(CharReader &reader, + Logger &logger); + /** * Parses an integer from the given CharReader instance until one of the * given delimiter characters is reached. -- cgit v1.2.3