diff options
| author | ljfa <ljfa-ag@web.de> | 2015-08-07 15:24:13 +0200 |
|---|---|---|
| committer | ljfa <ljfa-ag@web.de> | 2015-08-07 15:31:36 +0200 |
| commit | 20fb31d81b3dfcf66867b4660a887f7b113f4833 (patch) | |
| tree | 6ac975a3acce213080c5673962c37edd1fb95956 /include | |
| parent | c596c4f7ae529e2dd9976c1963634825595c2218 (diff) | |
| download | Project-Tick-20fb31d81b3dfcf66867b4660a887f7b113f4833.tar.gz Project-Tick-20fb31d81b3dfcf66867b4660a887f7b113f4833.zip | |
Add read_compound 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 75dba6dddb..330d9c5c69 100644 --- a/include/io/stream_reader.h +++ b/include/io/stream_reader.h @@ -22,6 +22,7 @@ #include "endian_str.h" #include "tag.h" +#include "tagfwd.h" #include <iosfwd> #include <memory> #include <stdexcept> @@ -57,6 +58,12 @@ public: endian::endian get_endian() const; /** + * @brief Reads a named tag from the stream, making sure that it is a compound + * @throw input_error on failure, or if the tag in the stream is not a compound + */ + std::pair<std::string, std::unique_ptr<tag_compound>> read_compound(); + + /** * @brief Reads a named tag from the stream * @throw input_error on failure */ |
