OFFIS DCMTK
Version 3.6.0
|
A class to handle an instance cache (list of items). More...
Classes | |
struct | ItemStruct |
Internal structure defining the list items. More... | |
Public Member Functions | |
DVInstanceCache () | |
Constructor. | |
virtual | ~DVInstanceCache () |
Destructor. | |
void | clear () |
reset all member variables to initial state. More... | |
OFBool | empty () const |
checks whether instance cache is empty More... | |
Uint32 | getCount () const |
gets number of cache entries More... | |
OFBool | gotoItem (Uint32 idx) |
sets internal cursor to specified position in cache list More... | |
OFBool | gotoFirst () |
sets internal cursor to first position in cache list More... | |
OFBool | gotoNext () |
sets internal cursor to next position in cache list More... | |
OFBool | reset () |
sets internal cursor to last visited position in cache list More... | |
OFBool | isElem (const OFString &uid) |
checks whether an item with the specified UID exists in the cache list More... | |
int | getPos () const |
gets the file position of the current (selected) instance More... | |
DVIFhierarchyStatus | getStatus () const |
gets review status of the current (selected) instance More... | |
DVPSInstanceType | getType () const |
gets type of the instance More... | |
int | getImageSize () const |
gets image size of current (selected) instance More... | |
const char * | getFilename () const |
gets filename of current (selected) instance More... | |
ItemStruct * | getItem () const |
gets reference to current (selected) instance More... | |
void | addItem (const OFString &uid, const int pos, const DVIFhierarchyStatus status, const DVPSInstanceType type, const int size, const OFString &filename) |
adds a new item to the cache list. More... | |
DVIFhierarchyStatus | updateStatus () |
updates hierarchical/review status for all list items. More... | |
Protected Member Functions | |
OFListIterator (ItemStruct *) Iterator | |
internal cursor to current (selected) list item | |
OFListIterator (ItemStruct *) OldIterator | |
last visited position in item list | |
Protected Attributes | |
OFList< ItemStruct * > | List |
list of instances | |
A class to handle an instance cache (list of items).
This is the lowest level in the hierarchical cache structure. Images are handled as well as presentation states. This class is used by DVSeriesCache.
|
inline |
reset all member variables to initial state.
delete all list items.
Definition at line 149 of file dvcache.h.
References List, and OFListIterator().
Referenced by ~DVInstanceCache(), DVSeriesCache::~DVSeriesCache(), and DVStudyCache::~DVStudyCache().
|
inline |
|
inline |
|
inline |
gets filename of current (selected) instance
Definition at line 316 of file dvcache.h.
References OFString::c_str(), DVInstanceCache::ItemStruct::Filename, and getItem().
|
inline |
gets image size of current (selected) instance
Definition at line 306 of file dvcache.h.
References getItem(), and DVInstanceCache::ItemStruct::ImageSize.
|
inline |
gets reference to current (selected) instance
Definition at line 326 of file dvcache.h.
References List.
Referenced by getFilename(), getImageSize(), getPos(), getStatus(), DVSeriesCache::getStatus(), DVStudyCache::getStatus(), getType(), and DVSeriesCache::getType().
|
inline |
gets the file position of the current (selected) instance
Definition at line 276 of file dvcache.h.
References getItem(), and DVInstanceCache::ItemStruct::Pos.
|
inline |
gets review status of the current (selected) instance
Definition at line 286 of file dvcache.h.
References getItem(), and DVInstanceCache::ItemStruct::Status.
|
inline |
gets type of the instance
Definition at line 296 of file dvcache.h.
References getItem(), and DVInstanceCache::ItemStruct::Type.
|
inline |
|
inline |
sets internal cursor to specified position in cache list
idx | index position in cache list (starting with 0) |
Definition at line 186 of file dvcache.h.
References List, and OFListIterator().
|
inline |
sets internal cursor to next position in cache list
Definition at line 219 of file dvcache.h.
References List, and OFListIterator().
|
inline |
checks whether an item with the specified UID exists in the cache list
uid | UID which should be checked |
Definition at line 251 of file dvcache.h.
References List, OFListIterator(), and DVInstanceCache::ItemStruct::UID.
|
inline |
sets internal cursor to last visited position in cache list
Definition at line 232 of file dvcache.h.
References List, and OFListIterator().
|
inline |
updates hierarchical/review status for all list items.
Definition at line 358 of file dvcache.h.
References List, OFListIterator(), and DVInstanceCache::ItemStruct::Status.
Referenced by DVSeriesCache::updateStatus().