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:

DcmInputStream 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.

Definition at line 153 of file dcistrmb.h.


Member Function Documentation

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.

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

Implements DcmInputStream.

virtual void DcmInputBufferStream::setBuffer ( const void *  buf,
offile_off_t  buflen 
) [virtual]

adds the content of the given buffer to the input stream.

Parameters:
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::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::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 6 Jan 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.5.1