10#include <Poco/String.h>
26 : m_hasFileName(!fileName.empty()), m_cachePath(fileName), m_cacheParentDirectory(m_cachePath.parent_path()),
27 m_cachePathStr(m_cachePath.string())
static const std::string expectedExtension()
Returns the expected extension of an IDF file.
std::filesystem::path getParentDirectory() const override
Gets the parent directory of the file.
const std::filesystem::path m_cacheParentDirectory
IDFObject(const std::string &fileName)
Constructor.
const std::string & getFileFullPathStr() const override
std::string getMangledName() const override
Gets the idf file as a mangled name.
const std::filesystem::path & getFileFullPath() const override
Getter for the full file path.
const std::string m_cachePathStr
bool exists() const override
Check that the file exists.
std::string getFileNameOnly() const override
Gets the filename for the FileObject.
const std::filesystem::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.