9#include <Poco/String.h>
24 : m_defFile(fileName), m_hasFileName(!fileName.empty()), m_cachePath(m_defFile.path()),
25 m_cacheParentDirectory(m_cachePath.parent()), m_cachePathStr(m_cachePath.toString())
static const std::string expectedExtension()
Returns the expected extension of an IDF file.
const Poco::File m_defFile
IDFObject(const std::string &fileName)
Constructor.
const Poco::Path & getFileFullPath() const override
Getter for the full file path.
const std::string & getFileFullPathStr() const override
std::string getMangledName() const override
Gets the idf file as a mangled name.
const std::string m_cachePathStr
const Poco::Path getParentDirectory() const override
Gets the parent directory of the file.
bool exists() const override
Check that the file exists.
const Poco::Path m_cacheParentDirectory
std::string getFileNameOnly() const override
Gets the filename for the FileObject.
const Poco::Path m_cachePath
std::string getExtension() const override
Gets the extension of this IDF file, including the leading period.
MANTID_KERNEL_DLL std::string sha1FromString(const std::string &input)
create a SHA-1 checksum from a string
MANTID_KERNEL_DLL std::string loadFile(const std::string &filepath, const bool unixEOL)
Load contents of file into a string.