DCMTK
Version 3.6.1 20120515
OFFIS DICOM Toolkit
|
input stream that reads from a buffer of fixed length which must be provided by the caller. More...
Public Member Functions | |
DcmInputBufferStream () | |
constructor | |
virtual | ~DcmInputBufferStream () |
destructor | |
virtual DcmInputStreamFactory * | newFactory () const |
creates a new factory object for the current stream and stream position. | |
virtual void | setBuffer (const void *buf, offile_off_t buflen) |
adds the content of the given buffer to the input stream. | |
virtual void | releaseBuffer () |
releases the current buffer. | |
virtual void | setEos () |
marks the end of stream, i.e. | |
Private Member Functions | |
DcmInputBufferStream (const DcmInputBufferStream &) | |
private unimplemented copy constructor | |
DcmInputBufferStream & | operator= (const DcmInputBufferStream &) |
private unimplemented copy assignment operator | |
Private Attributes | |
DcmBufferProducer | producer_ |
the final producer of the filter chain |
input stream that reads from a buffer of fixed length which must be provided by the caller.
virtual DcmInputStreamFactory* DcmInputBufferStream::newFactory | ( | ) | const [virtual] |
creates a new factory object for the current stream and stream position.
When activated, the factory will be able to create new DcmInputStream delivering the same data as the current stream. Used to defer loading of value fields until accessed. If no factory object can be created (e.g. because the stream is not seekable), returns NULL.
Implements DcmInputStream.
virtual void DcmInputBufferStream::releaseBuffer | ( | ) | [virtual] |
releases the current buffer.
Should only be called when the content of the buffer has been read as far as possible. Pending input from the buffer is copied into an internal backup buffer if necessary. If an overflow condition occurs, the producer status becomes bad.
virtual void DcmInputBufferStream::setBuffer | ( | const void * | buf, |
offile_off_t | buflen | ||
) | [virtual] |
adds the content of the given buffer to the input stream.
buf | buffer from which data is read. Must be allocated by caller and remain valid until releaseBuffer() is called |
buflen | buffer length, must be even number > 0. |
virtual void DcmInputBufferStream::setEos | ( | ) | [virtual] |
marks the end of stream, i.e.
the data provided with the last call to setBuffer is the last data available in the stream.