DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions | Private Member Functions | Private Attributes
DcmInputBufferStream Class Reference

input stream that reads from a buffer of fixed length which must be provided by the caller. More...

+ Inheritance diagram for DcmInputBufferStream:

List of all members.

Public Member Functions

 DcmInputBufferStream ()
 constructor
virtual ~DcmInputBufferStream ()
 destructor
virtual DcmInputStreamFactorynewFactory () 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
DcmInputBufferStreamoperator= (const DcmInputBufferStream &)
 private unimplemented copy assignment operator

Private Attributes

DcmBufferProducer producer_
 the final producer of the filter chain

Detailed Description

input stream that reads from a buffer of fixed length which must be provided by the caller.


Member Function Documentation

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.

Returns:
pointer to new factory object if successful, NULL otherwise.

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.

Parameters:
bufbuffer from which data is read. Must be allocated by caller and remain valid until releaseBuffer() is called
buflenbuffer 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.


The documentation for this class was generated from the following file:


Generated on Tue May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027