21#include <FMEThirdPartyWarningsDisable.h>
24#include <FMEThirdPartyWarningsRestore.h>
42public std::basic_string<CT>
62 return !this->empty() && ((*this)[0] ==
'*') && (_getMLintFrameIndex() >= 0);
75 return MLFileExists((this->isMultiFrameHandle() ? getOriginalFrameHandle() : *
this).
c_str()) != 0;
87 if (_getMLintFrameIndex() >= 0){
100 const MLint index = _getMLintFrameIndex();
112 std::basic_string<CT> filename =
"";
119 filename = (*iter)->resolveFilename(*
this);
120 if (!filename.empty()) {
133 inline MLint _getMLintFrameIndex()
const
137 if (!this->empty() && ((*
this)[0] ==
'*')){
139 if (hashPos != this->
npos){
Project global and OS specific declarations.
#define MLDICOMCachedIO_EXPORT
If included by external modules, exported symbols are declared as import symbols.
Forward template declaration for typedef'ing.
std::basic_string< CT > getFilename() const
Returns the resolved filename, returned by a registered DICOMCachedIOFileHandlePlugin or an empty str...
DICOMCachedIOFileHandleBase(const std::basic_string< CT > &str)
Copy constructor.
DICOMCachedIOFileHandleBase getOriginalFrameHandle() const
Returns the original file handle of a multi-frame handle; if the handle is no multi-frame handle then...
bool isMultiFrameHandle() const
Returns true if the handle is of the format "*" + fileHandlePathOrURL + "#<frameIdx>" with frameIndex...
bool fileExists(bool allowEmpty) const
Returns true if the file handle can be found as file on disk, otherwise false.
unsigned int getFrameIndex() const
Returns the unsigned index position of the referenced frame index if the handle is a multi-frame hand...
DICOMCachedIOFileHandleBase()
Default Constructor creating a handle with an empty string.
Class for FileHandleProvider for DICOM importing modules.
Header file for class resolving filenames from a given identifier (url,etc...) for DICOM importing mo...
Header file of class providing available DICOMCachedIOFileHandlePlugins which resolve filenames for D...
ML_UTILS_EXPORT int MLFileExists(const char *fileName)
Returns 1 if the given with name fileName exists, 0 otherwise or if fileName is NULL.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
DICOMCachedIOFileHandleBase< char > DICOMCachedIOFileHandle
"Forward" to DICOMCachedIOFileHandle.