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

This class implements a simple container that stores an input stream, the position of that input stream corresponding to the start of a DICOM element value field contained in the stream and the current "owner" object. More...

List of all members.

Public Member Functions

 DcmFileCache ()
 default constructor
 ~DcmFileCache ()
 destructor
OFBool isUser (void *object) const
 checks if the given object is the current user of this cache returns true if so, false otherwise
void clear ()
 returns object to default constructed state
void init (DcmInputStream *stream, void *user)
 initializes the file cache with the given stream object and user.
DcmInputStreamgetStream ()
 return input stream
offile_off_t getOffset () const
 return initial stream offset

Private Member Functions

 DcmFileCache (const DcmFileCache &arg)
 private undefined copy constructor
DcmFileCacheoperator= (const DcmFileCache &arg)
 private undefined copy assignment operator

Private Attributes

DcmInputStreamstream_
 input stream, may be NULL
offile_off_t offset_
 offset within stream for initial position
const void * user_
 object that currently uses the file cache, i.e. has created the stream

Detailed Description

This class implements a simple container that stores an input stream, the position of that input stream corresponding to the start of a DICOM element value field contained in the stream and the current "owner" object.

It is used to keep a single file handle open during multiple calls to DcmElement::getPartialValue(), thus speeding up the reading.


Member Function Documentation

void DcmFileCache::init ( DcmInputStream stream,
void *  user 
) [inline]

initializes the file cache with the given stream object and user.

Parameters:
streamstream object
useruser object
OFBool DcmFileCache::isUser ( void *  object) const [inline]

checks if the given object is the current user of this cache returns true if so, false otherwise

Parameters:
objectpointer to "user object"

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