33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/dcmdata/dcostrma.h"
57 virtual OFBool
good()
const;
79 virtual offile_off_t
avail()
const;
86 virtual offile_off_t
write(
const void *buf, offile_off_t buflen);
102 virtual void flushBuffer(
void *& buffer, offile_off_t& length);
149 virtual void flushBuffer(
void *& buffer, offile_off_t& length);
virtual ~DcmOutputBufferStream()
destructor
DcmBufferConsumer & operator=(const DcmBufferConsumer &)
private unimplemented copy assignment operator
virtual OFBool good() const
returns the status of the consumer.
output stream that writes into a buffer of fixed length which must be provided by the caller...
virtual OFCondition status() const
returns the status of the consumer as an OFCondition object.
base class for output streams.
DcmBufferConsumer consumer_
the final consumer of the filter chain
DcmBufferConsumer(void *buf, offile_off_t bufLen)
constructor
virtual OFBool isFlushed() const
returns true if the consumer is flushed, i.e.
consumer class that stores data in a buffer provided by the caller.
OFCondition status_
status
offile_off_t filled_
number of bytes filled in buffer
unsigned char * buffer_
the buffer we're actually writing to
DcmOutputBufferStream(void *buf, offile_off_t bufLen)
constructor
virtual void flushBuffer(void *&buffer, offile_off_t &length)
retrieves and flushes the underlying buffer.
virtual ~DcmBufferConsumer()
destructor
offile_off_t bufSize_
size of the buffer, in bytes
virtual offile_off_t write(const void *buf, offile_off_t buflen)
processes as many bytes as possible from the given input block.
virtual offile_off_t avail() const
returns the minimum number of bytes that can be written with the next call to write().
DcmOutputBufferStream & operator=(const DcmOutputBufferStream &)
private unimplemented copy assignment operator
pure virtual abstract base class for consumers, i.e.
virtual void flushBuffer(void *&buffer, offile_off_t &length)
retrieves and flushes the underlying buffer.
virtual void flush()
instructs the consumer to flush its internal content until either the consumer becomes "flushed" or I...
General purpose class for condition codes.