Mantid
Loading...
Searching...
No Matches
FileBackedExperimentInfo.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2015 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include "MantidAPI/DllConfig.h"
11
12namespace Mantid {
13namespace API {
14
19class MANTID_API_DLL FileBackedExperimentInfo : public ExperimentInfo {
20public:
21 FileBackedExperimentInfo(std::string filename, std::string nxpath);
22 ExperimentInfo *cloneExperimentInfo() const override;
23
24private:
25 void populateIfNotLoaded() const override;
26 void populateFromFile() const;
27
28 mutable bool m_loaded;
29 std::string m_filename;
30 std::string m_nxpath;
31};
32
33} // namespace API
34} // namespace Mantid
This class is shared by a few Workspace types and holds information related to a particular experimen...
Implements a lazy-loading mechanism for the experimental information stored in a NeXus file.
Helper class which provides the Collimation Length for SANS instruments.