Mantid
|
Common methods for LoadInstrument.cpp and LoadEmptyInstrument.cpp. More...
Functions | |
bool | isIDF (const std::string &filename) |
Determine if the Geometry file type is IDF. More... | |
bool | isNexus (const std::string &filename) |
Determine if the Geometry file type is Nexus. More... | |
bool | isNexus (const std::string &filename, const std::map< std::string, std::set< std::string > > &allEntries) |
Determine if the Geometry file type is Nexus version that reuses the metadata container. More... | |
const std::vector< std::string > | validExtensions () |
List allowed file extensions for geometry. More... | |
Common methods for LoadInstrument.cpp and LoadEmptyInstrument.cpp.
bool Mantid::DataHandling::LoadGeometry::isIDF | ( | const std::string & | filename | ) |
Determine if the Geometry file type is IDF.
Definition at line 14 of file LoadGeometry.cpp.
References Mantid::Kernel::FileDescriptor::isXML().
Referenced by Mantid::DataHandling::LoadInstrument::exec().
bool Mantid::DataHandling::LoadGeometry::isNexus | ( | const std::string & | filename | ) |
Determine if the Geometry file type is Nexus.
Definition at line 23 of file LoadGeometry.cpp.
References Mantid::Kernel::NexusDescriptor::classTypeExists(), Mantid::Kernel::FileDescriptor::isAscii(), and Mantid::Kernel::NexusDescriptor::isReadable().
Referenced by Mantid::DataHandling::LoadInstrument::exec(), and Mantid::DataHandling::LoadEventNexus::runLoadInstrument().
bool Mantid::DataHandling::LoadGeometry::isNexus | ( | const std::string & | filename, |
const std::map< std::string, std::set< std::string > > & | allEntries | ||
) |
Determine if the Geometry file type is Nexus version that reuses the metadata container.
Definition at line 33 of file LoadGeometry.cpp.
References Mantid::Kernel::FileDescriptor::isAscii(), and Mantid::Kernel::NexusDescriptor::isReadable().
const std::vector< std::string > Mantid::DataHandling::LoadGeometry::validExtensions | ( | ) |
List allowed file extensions for geometry.
Definition at line 45 of file LoadGeometry.cpp.
Referenced by Mantid::DataHandling::LoadEmptyInstrument::init(), and Mantid::DataHandling::LoadInstrument::init().