diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-08-06 10:49:08 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-08-06 10:49:08 +0200 |
| commit | 7e3bd6ce1cc07dab0b5f7aaf30d213af802dbd0a (patch) | |
| tree | 43353981315184b1e96949c82594d0ef7dcf3bc9 /include | |
| parent | 9993ebf57fa5822d4d573b359220610962b4a78b (diff) | |
| download | Project-Tick-7e3bd6ce1cc07dab0b5f7aaf30d213af802dbd0a.tar.gz Project-Tick-7e3bd6ce1cc07dab0b5f7aaf30d213af802dbd0a.zip | |
Add stream_reader::read_tag method
Diffstat (limited to 'include')
| -rw-r--r-- | include/io/stream_reader.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <iosfwd> #include <memory> #include <stdexcept> +#include <utility> namespace nbt { @@ -56,6 +57,12 @@ public: endian::endian get_endian() const; /** + * @brief Reads a named tag from the stream + * @throw input_error on failure + */ + std::pair<std::string, std::unique_ptr<tag>> read_tag(); + + /** * @brief Reads a tag of the given type without name from the stream * @throw input_error on failure */ |
