DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions | Private Member Functions | Private Attributes
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:

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.


Constructor & Destructor Documentation

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

constructor

Parameters:
bufbuffer in which data is stored. Must be allocated by caller and remain valid during the lifetime of this object.
bufLenbuffer 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:
bufferpointer to user provided buffer returned in this parameter
lengthnumber of bytes in buffer returned in this parameter

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