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, Uint32 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 158 of file dcistrmb.h.


Constructor & Destructor Documentation

DcmInputBufferStream::DcmInputBufferStream  ) 
 

constructor

Parameters:
buf buffer from which data is read. Must be allocated by caller and remain valid during the lifetime of this object.
bufLen buffer length, must be even number > 0.


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::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,
Uint32  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::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 20 Dec 2005 for OFFIS DCMTK Version 3.5.4 by Doxygen 1.4.5