Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomFormat/StreamBlockReader.h @ 4224:38d446c9ee1d
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Sep 2020 17:59:09 +0200 |
parents | 3d6f14a05db1 |
children | 81f2d1484886 |
comparison
equal
deleted
inserted
replaced
4223:3d6f14a05db1 | 4224:38d446c9ee1d |
---|---|
20 **/ | 20 **/ |
21 | 21 |
22 | 22 |
23 #pragma once | 23 #pragma once |
24 | 24 |
25 #include "../OrthancFramework.h" // For ORTHANC_PUBLIC | |
26 | |
25 #include <boost/noncopyable.hpp> | 27 #include <boost/noncopyable.hpp> |
26 #include <istream> | 28 #include <istream> |
27 #include <string> | 29 #include <string> |
28 | 30 |
29 | 31 |
32 /** | 34 /** |
33 * This class is used to extract blocks of given size from a | 35 * This class is used to extract blocks of given size from a |
34 * stream. Bytes from the stream are buffered until the requested | 36 * stream. Bytes from the stream are buffered until the requested |
35 * size is available, and the full block can be returned. | 37 * size is available, and the full block can be returned. |
36 **/ | 38 **/ |
37 class StreamBlockReader : public boost::noncopyable | 39 class ORTHANC_PUBLIC StreamBlockReader : public boost::noncopyable |
38 { | 40 { |
39 private: | 41 private: |
40 std::istream& stream_; | 42 std::istream& stream_; |
41 std::string block_; | 43 std::string block_; |
42 size_t blockPos_; | 44 size_t blockPos_; |