Mantid
|
Concrete IDF Object. More...
#include <IDFObject.h>
Public Member Functions | |
bool | exists () const override |
Check that the file exists. More... | |
std::string | getExtension () const override |
Gets the extension of this IDF file, including the leading period. More... | |
const Poco::Path & | getFileFullPath () const override |
Getter for the full file path. More... | |
const std::string & | getFileFullPathStr () const override |
std::string | getFileNameOnly () const override |
Gets the filename for the FileObject. More... | |
std::string | getMangledName () const override |
Gets the idf file as a mangled name. More... | |
const Poco::Path | getParentDirectory () const override |
Gets the parent directory of the file. More... | |
IDFObject (const std::string &fileName) | |
Constructor. More... | |
Public Member Functions inherited from Mantid::Geometry::AbstractIDFObject | |
AbstractIDFObject ()=default | |
virtual bool | exists () const =0 |
virtual std::string | getExtension () const =0 |
virtual const Poco::Path & | getFileFullPath () const =0 |
virtual const std::string & | getFileFullPathStr () const =0 |
virtual std::string | getFileNameOnly () const =0 |
virtual std::string | getMangledName () const =0 |
virtual const Poco::Path | getParentDirectory () const =0 |
virtual | ~AbstractIDFObject ()=default |
Private Member Functions | |
IDFObject (const IDFObject &) | |
IDFObject & | operator= (const IDFObject &) |
Private Attributes | |
const Poco::Path | m_cacheParentDirectory |
const Poco::Path | m_cachePath |
const std::string | m_cachePathStr |
const Poco::File | m_defFile |
const bool | m_hasFileName |
Additional Inherited Members | |
Static Public Member Functions inherited from Mantid::Geometry::AbstractIDFObject | |
static const std::string | expectedExtension () |
Returns the expected extension of an IDF file. More... | |
Concrete IDF Object.
Definition at line 52 of file IDFObject.h.
Mantid::Geometry::IDFObject::IDFObject | ( | const std::string & | fileName | ) |
Constructor.
Definition at line 23 of file IDFObject.cpp.
|
private |
|
overridevirtual |
Check that the file exists.
Implements Mantid::Geometry::AbstractIDFObject.
Definition at line 75 of file IDFObject.cpp.
References m_defFile, and m_hasFileName.
|
overridevirtual |
Gets the extension of this IDF file, including the leading period.
Implements Mantid::Geometry::AbstractIDFObject.
Definition at line 53 of file IDFObject.cpp.
References m_cachePath.
|
overridevirtual |
Getter for the full file path.
Implements Mantid::Geometry::AbstractIDFObject.
Definition at line 39 of file IDFObject.cpp.
References m_cachePath.
|
overridevirtual |
Implements Mantid::Geometry::AbstractIDFObject.
Definition at line 41 of file IDFObject.cpp.
References m_cachePathStr.
Referenced by getMangledName().
|
overridevirtual |
Gets the filename for the FileObject.
Implements Mantid::Geometry::AbstractIDFObject.
Definition at line 47 of file IDFObject.cpp.
References m_cachePath.
Referenced by getMangledName().
|
overridevirtual |
Gets the idf file as a mangled name.
Implements Mantid::Geometry::AbstractIDFObject.
Definition at line 65 of file IDFObject.cpp.
References getFileFullPathStr(), getFileNameOnly(), Mantid::Kernel::ChecksumHelper::loadFile(), and Mantid::Kernel::ChecksumHelper::sha1FromString().
|
overridevirtual |
Gets the parent directory of the file.
Implements Mantid::Geometry::AbstractIDFObject.
Definition at line 33 of file IDFObject.cpp.
References m_cacheParentDirectory.
|
private |
Definition at line 69 of file IDFObject.h.
Referenced by getParentDirectory().
|
private |
Definition at line 68 of file IDFObject.h.
Referenced by getExtension(), getFileFullPath(), and getFileNameOnly().
|
private |
Definition at line 70 of file IDFObject.h.
Referenced by getFileFullPathStr().
|
private |
Definition at line 66 of file IDFObject.h.
Referenced by exists().
|
private |
Definition at line 67 of file IDFObject.h.
Referenced by exists().