MeVisLab Toolbox Reference
mlDICOMCachedIOTreeCacheSingleMFMapEntry.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
6 
11 //----------------------------------------------------------------------------------
12 
13 #pragma once
14 
15 // Local includes
16 #include "MLDICOMCachedIOSystem.h"
18 #include <mlTypeDefs.h>
19 #include <DCMTree_Tree.h>
20 
21 
25 {
26  public:
27 
30  size_t frameIndexArg);
31 
34 
37  const ML_NAMESPACE::DICOMCachedIOFileHandle origFileHandleArg,
38  size_t frameIndexArg);
39 
42 
45 
47  inline const DCMTree::TreePtr &getSingleFrameTree() const { return _singleFrameTree; }
48  inline const ML_NAMESPACE::DICOMCachedIOFileHandle &getCodedHandle() const { return _codedHandle; }
49  inline const ML_NAMESPACE::DICOMCachedIOFileHandle &getOrigHandle() const { return _origFileHandle; }
50  inline size_t getFrameIndex() const { return _frameIndex; }
52 
53  protected:
56 
60 
64 
66  size_t _frameIndex;
67 };
Project global and OS specific declarations.
#define MLDICOMCachedIO_EXPORT
If included by external modules, exported symbols are declared as import symbols.
Class describing one SingleMultiFrameFrame entry in the map of locked single frames in the MLDICOMCac...
const ml::DICOMCachedIOFileHandle & getCodedHandle() const
const DCMTree::TreePtr & getSingleFrameTree() const
Public access to protected members.
MLDICOMCachedIOTreeCacheSingleMFMapEntry(DCMTree::TreePtr singleFrameTreeArg, const ml::DICOMCachedIOFileHandle origFileHandleArg, size_t frameIndexArg)
Convenience constructor.
MLDICOMCachedIOTreeCacheSingleMFMapEntry()
Default constructor.
static ml::DICOMCachedIOFileHandle createCodedHandle(const ml::DICOMCachedIOFileHandle origFileHandleArg, size_t frameIndexArg)
Function which returns a coded handle built from an original handle and an index.
ml::DICOMCachedIOFileHandle _codedHandle
The coded handle to the single frame + original handle to the multi-frame file with additional "*" at...
ml::DICOMCachedIOFileHandle _origFileHandle
The original handle to the multi-frame file without additional "*" at its beginning and without numbe...
MLDICOMCachedIOTreeCacheSingleMFMapEntry(const MLDICOMCachedIOTreeCacheSingleMFMapEntry &orig)
Copy constructor.
const ml::DICOMCachedIOFileHandle & getOrigHandle() const
DCMTree::TreePtr _singleFrameTree
The tree representing one frame from a multi-frame file.
size_t _frameIndex
The index of the frame in _origFileHandle to which singleFrameTree corresponds.
MLDICOMCachedIOTreeCacheSingleMFMapEntry & operator=(const MLDICOMCachedIOTreeCacheSingleMFMapEntry &orig)
Assignment operator.
Header of FileHandle class which should be used in DICOM importing modules to resolve the filename fo...
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree
Definition: DCMTree_Lib.h:70
DICOMCachedIOFileHandleBase< char > DICOMCachedIOFileHandle
"Forward" to DICOMCachedIOFileHandle.