32 #include "dcmtk/config/osconfig.h"
33 #include "dcmtk/ofstd/offile.h"
34 #include "dcmtk/dcmdata/dcistrma.h"
66 return object ==
user_;
offile_off_t getOffset() const
return initial stream offset
void init(DcmInputStream *stream, void *user)
initializes the file cache with the given stream object and user.
DcmInputStream * getStream()
return input stream
DcmFileCache & operator=(const DcmFileCache &arg)
private undefined copy assignment operator
This class implements a simple container that stores an input stream, the position of that input stre...
offile_off_t offset_
offset within stream for initial position
OFBool isUser(void *object) const
checks if the given object is the current user of this cache returns true if so, false otherwise ...
DcmInputStream * stream_
input stream, may be NULL
DcmFileCache()
default constructor
~DcmFileCache()
destructor
void clear()
returns object to default constructed state
const void * user_
object that currently uses the file cache, i.e. has created the stream