9#include "MantidKernel/DllConfig.h"
14#include <unordered_set>
53 inline const std::string &
filename()
const {
return m_filename; }
59 inline const std::string &
extension()
const {
return m_extension; }
64 inline Mantid::LegacyNexus::File &
data() {
return *m_file; }
67 const std::pair<std::string, std::string> &firstEntryNameType()
const;
69 bool pathExists(
const std::string &path)
const;
73 void initialize(
const std::string &filename);
75 void walkFile(Mantid::LegacyNexus::File &file,
const std::string &rootPath,
const std::string &className,
76 std::map<std::string, std::string> &
pmap,
int level);
90 std::unique_ptr<Mantid::LegacyNexus::File>
m_file;
Defines a wrapper around a file whose internal structure can be accessed using the NeXus API.
LegacyNexusDescriptor(const LegacyNexusDescriptor &)=delete
Disable copy operator.
std::map< std::string, std::string > m_pathsToTypes
Map of full path strings to types. Can check if path exists quickly.
std::pair< std::string, std::string > m_firstEntryNameType
First entry name/type.
std::unordered_set< std::string > m_rootAttrs
Root attributes.
std::string m_extension
Extension.
LegacyNexusDescriptor()=delete
Disable default constructor.
const std::string & extension() const
Access the file extension.
std::string m_filename
Full filename.
Mantid::LegacyNexus::File & data()
Access the open NeXus File object.
~LegacyNexusDescriptor()
Destructor.
LegacyNexusDescriptor & operator=(const LegacyNexusDescriptor &)=delete
Disable assignment operator.
const std::string & filename() const
Access the filename.
std::unique_ptr< Mantid::LegacyNexus::File > m_file
Open NeXus handle.
Helper class which provides the Collimation Length for SANS instruments.
Generate a tableworkspace to store the calibration results.