DcmOutputBufferStream Class Reference

output stream that writes into a buffer of fixed length which must be provided by the caller. More...

Inheritance diagram for DcmOutputBufferStream:

DcmOutputStream List of all members.

Public Member Functions

 DcmOutputBufferStream (void *buf, offile_off_t bufLen)
 constructor
virtual ~DcmOutputBufferStream ()
 destructor
virtual void flushBuffer (void *&buffer, offile_off_t &length)
 retrieves and flushes the underlying buffer.

Private Member Functions

 DcmOutputBufferStream (const DcmOutputBufferStream &)
 private unimplemented copy constructor
DcmOutputBufferStreamoperator= (const DcmOutputBufferStream &)
 private unimplemented copy assignment operator

Private Attributes

DcmBufferConsumer consumer_
 the final consumer of the filter chain

Detailed Description

output stream that writes into a buffer of fixed length which must be provided by the caller.

Definition at line 129 of file dcostrmb.h.


Constructor & Destructor Documentation

DcmOutputBufferStream::DcmOutputBufferStream ( void *  buf,
offile_off_t  bufLen 
)

constructor

Parameters:
buf buffer in which data is stored. 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 void DcmOutputBufferStream::flushBuffer ( void *&  buffer,
offile_off_t &  length 
) [virtual]

retrieves and flushes the underlying buffer.

After return of this method, the buffer is considered to have been flushed (copied, stored) by the caller and is reused by the next write operation.

Parameters:
buffer pointer to user provided buffer returned in this parameter
length number of bytes in buffer returned in this parameter


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