From 7e3bd6ce1cc07dab0b5f7aaf30d213af802dbd0a Mon Sep 17 00:00:00 2001 From: ljfa-ag Date: Thu, 6 Aug 2015 10:49:08 +0200 Subject: Add stream_reader::read_tag method --- include/io/stream_reader.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/io/stream_reader.h b/include/io/stream_reader.h index 7d97824927..75dba6dddb 100644 --- a/include/io/stream_reader.h +++ b/include/io/stream_reader.h @@ -25,6 +25,7 @@ #include #include #include +#include namespace nbt { @@ -55,6 +56,12 @@ public: ///Returns the byte order endian::endian get_endian() const; + /** + * @brief Reads a named tag from the stream + * @throw input_error on failure + */ + std::pair> read_tag(); + /** * @brief Reads a tag of the given type without name from the stream * @throw input_error on failure -- cgit 0.0.5-2-1-g0f52