32 #include "dcmtk/config/osconfig.h" 33 #include "dcmtk/ofstd/oftypes.h" 34 #include "dcmtk/ofstd/ofcond.h" 35 #include "dcmtk/ofstd/offile.h" 36 #include "dcmtk/dcmdata/dcxfer.h" 56 virtual OFBool
good()
const = 0;
67 virtual OFBool
eos() = 0;
76 virtual offile_off_t
avail() = 0;
83 virtual offile_off_t
read(
void *buf, offile_off_t buflen) = 0;
89 virtual offile_off_t
skip(offile_off_t skiplen) = 0;
95 virtual void putback(offile_off_t num) = 0;
158 virtual OFBool
good()
const;
169 virtual OFBool
eos();
178 virtual offile_off_t
avail();
185 virtual offile_off_t
read(
void *buf, offile_off_t buflen);
191 virtual offile_off_t
skip(offile_off_t skiplen);
196 virtual offile_off_t tell()
const;
205 virtual OFCondition installCompressionFilter(E_StreamCompression filterType);
virtual offile_off_t avail()=0
returns the minimum number of bytes that can be read with the next call to read().
virtual void putback(offile_off_t num)=0
resets the stream to the position by the given number of bytes.
virtual ~DcmProducer()
destructor
virtual OFBool eos()=0
returns true if the producer is at the end of stream.
virtual OFBool good() const =0
returns the status of the producer.
virtual offile_off_t skip(offile_off_t skiplen)=0
skips over the given number of bytes (or less)
virtual offile_off_t read(void *buf, offile_off_t buflen)=0
reads as many bytes as possible into the given block.
pure virtual abstract base class for producers, i.e.
virtual OFCondition status() const =0
returns the status of the producer as an OFCondition object.
General purpose class for condition codes.