21#include <FMEThirdPartyWarningsDisable.h>
24#include <FMEThirdPartyWarningsRestore.h>
42public std::basic_string<CT>
62 return !this->empty() && ((*this)[0] ==
'*') && (_getMLintFrameIndex() >= 0);
72 if (this->empty() && allowEmpty) {
87 if (_getMLintFrameIndex() >= 0){
88 const size_t hashPos = this->rfind(
'#');
89 retHandle = this->substr(1, hashPos - 1);
101 const MLint index = _getMLintFrameIndex();
102 return index < 0 ? 0u : static_cast<unsigned int>(index);
113 std::basic_string<CT> filename =
"";
117 std::vector<DICOMCachedIOFileHandlePlugin *>::const_iterator iter = plugins.begin(),endIt=plugins.end();
118 for( ; iter!=endIt; ++iter) {
120 filename = (*iter)->resolveFilename(*
this);
121 if (!filename.empty()) {
134 inline MLint _getMLintFrameIndex()
const
138 if (!this->empty() && ((*
this)[0] ==
'*')){
139 const size_t hashPos = this->rfind(
'#');
140 if (hashPos != this->npos){
142 const std::string idxStr = this->substr(hashPos + 1);
143 if (1 != sscanf(idxStr.c_str(),
"%lld", &index)) {
Project global and OS specific declarations.
#define MLDICOMCachedIO_EXPORT
If included by external modules, exported symbols are declared as import symbols.
std::basic_string< CT > getFilename() const
DICOMCachedIOFileHandleBase(const std::basic_string< CT > &str)
Copy constructor.
DICOMCachedIOFileHandleBase getOriginalFrameHandle() const
bool isMultiFrameHandle() const
bool fileExists(bool allowEmpty) const
unsigned int getFrameIndex() const
DICOMCachedIOFileHandleBase()
Default Constructor creating a handle with an empty string.
const std::vector< DICOMCachedIOFileHandlePlugin * > & getConstFileHandlePlugins() const
Returns a const vector of file handle Plugins.
static DICOMCachedIOFileHandleProvider & singleton()
ML_UTILS_EXPORT int MLFileExists(const char *fileName)
DICOMCachedIOFileHandleBase< char > DICOMCachedIOFileHandle
"Forward" to DICOMCachedIOFileHandle.