9#include "MantidGeometry/DllConfig.h"
34 static const std::string expectedExtension();
55 const Poco::Path getParentDirectory()
const override;
56 const Poco::Path &getFileFullPath()
const override;
57 const std::string &getFileFullPathStr()
const override;
58 std::string getFileNameOnly()
const override;
59 std::string getExtension()
const override;
60 std::string getMangledName()
const override;
61 bool exists()
const override;
82 const Poco::Path
getParentDirectory()
const override {
throw std::runtime_error(
"Not implemented on NullIDFObject"); }
83 const Poco::Path &
getFileFullPath()
const override {
throw std::runtime_error(
"Not implemented on NullIDFObject"); }
86 std::string
getExtension()
const override {
return m_emptyResponse; }
87 std::string
getMangledName()
const override {
throw std::runtime_error(
"Not implemented on NullIDFObject"); }
88 bool exists()
const override {
return false; }
IDFObject : File object wrapper over an IDF file.
virtual ~AbstractIDFObject()=default
virtual std::string getFileNameOnly() const =0
AbstractIDFObject()=default
AbstractIDFObject(const AbstractIDFObject &)
AbstractIDFObject & operator=(const AbstractIDFObject &)
virtual const std::string & getFileFullPathStr() const =0
virtual std::string getMangledName() const =0
virtual const Poco::Path getParentDirectory() const =0
virtual std::string getExtension() const =0
virtual const Poco::Path & getFileFullPath() const =0
virtual bool exists() const =0
IDFObject & operator=(const IDFObject &)
const Poco::File m_defFile
const std::string m_cachePathStr
IDFObject(const IDFObject &)
const Poco::Path m_cacheParentDirectory
const Poco::Path m_cachePath
bool exists() const override
const std::string & getFileFullPathStr() const override
std::string getMangledName() const override
const Poco::Path getParentDirectory() const override
std::string getExtension() const override
const Poco::Path & getFileFullPath() const override
std::string m_emptyResponse
std::string getFileNameOnly() const override
bool exists(::NeXus::File &file, const std::string &name)
Based on the current group in the file, does the named sub-entry exist?
std::shared_ptr< AbstractIDFObject > IDFObject_sptr
std::shared_ptr< const AbstractIDFObject > IDFObject_const_sptr
Helper class which provides the Collimation Length for SANS instruments.