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. | |
| DcmInputStream * | getStream () |
| return input stream | |
| offile_off_t | getOffset () const |
| return initial stream offset | |
Private Member Functions | |
| DcmFileCache (const DcmFileCache &arg) | |
| private undefined copy constructor | |
| DcmFileCache & | operator= (const DcmFileCache &arg) |
| private undefined copy assignment operator | |
Private Attributes | |
| DcmInputStream * | stream_ |
| 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 | |
It is used to keep a single file handle open during multiple calls to DcmElement::getPartialValue(), thus speeding up the reading.
Definition at line 42 of file dcfcache.h.
| 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
| object | pointer to "user object" |
Definition at line 64 of file dcfcache.h.
References user_.
| void DcmFileCache::init | ( | DcmInputStream * | stream, | |
| void * | user | |||
| ) | [inline] |
initializes the file cache with the given stream object and user.
| stream | stream object | |
| user | user object |
Definition at line 83 of file dcfcache.h.
References clear(), offset_, stream_, DcmInputStream::tell(), and user_.