diff --git a/Framework/DataHandling/CMakeLists.txt b/Framework/DataHandling/CMakeLists.txt index 0de48b0bcaba3811e81fabd30699de4295974dfd..27368db151176238e437d9e8caebb659c13f04ae 100644 --- a/Framework/DataHandling/CMakeLists.txt +++ b/Framework/DataHandling/CMakeLists.txt @@ -132,6 +132,7 @@ set(SRC_FILES src/MeshFileIO.cpp src/ModifyDetectorDotDatFile.cpp src/MoveInstrumentComponent.cpp + src/NexusFileLoader.cpp src/NexusTester.cpp src/ORNLDataArchive.cpp src/PDLoadCharacterizations.cpp @@ -336,6 +337,7 @@ set(INC_FILES inc/MantidDataHandling/ModifyDetectorDotDatFile.h inc/MantidDataHandling/MoveInstrumentComponent.h inc/MantidDataHandling/NXcanSASDefinitions.h + inc/MantidDataHandling/NexusFileLoader.h inc/MantidDataHandling/NexusTester.h inc/MantidDataHandling/ORNLDataArchive.h inc/MantidDataHandling/PDLoadCharacterizations.h diff --git a/Framework/DataHandling/inc/MantidDataHandling/NexusFileLoader.h b/Framework/DataHandling/inc/MantidDataHandling/NexusFileLoader.h new file mode 100644 index 0000000000000000000000000000000000000000..61b83884ef3a32ee1e5a48dbbe4d37f06cae1804 --- /dev/null +++ b/Framework/DataHandling/inc/MantidDataHandling/NexusFileLoader.h @@ -0,0 +1,27 @@ +// Mantid Repository : https://github.com/mantidproject/mantid +// +// Copyright © 2013 ISIS Rutherford Appleton Laboratory UKRI, +// NScD Oak Ridge National Laboratory, European Spallation Source +// & Institut Laue - Langevin +// SPDX - License - Identifier: GPL - 3.0 + +#pragma once + +#include "MantidAPI/IFileLoader.h" +#include "MantidKernel/NexusDescriptor.h" +#include "MantidKernel/System.h" + +namespace Mantid { +namespace API { + +class DLLExport NexusFileLoader : public IFileLoader<NexusDescriptor> { +public: + void exec() override; + void createChildAlgorithm(const std::string &name, + const double startProgress = -1., + const double endProgress = -1., + const bool enableLogging = true, + const int &version = -1) override; + setFileInfo() override; +}; +} // namespace API +} // namespace Mantid diff --git a/Framework/DataHandling/src/NexusFileLoader.cpp b/Framework/DataHandling/src/NexusFileLoader.cpp new file mode 100644 index 0000000000000000000000000000000000000000..28f3f336d7c156b5d0605723e6228e55a2a7bc7d --- /dev/null +++ b/Framework/DataHandling/src/NexusFileLoader.cpp @@ -0,0 +1,7 @@ +// Mantid Repository : https://github.com/mantidproject/mantid +// +// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI, +// NScD Oak Ridge National Laboratory, European Spallation Source +// & Institut Laue - Langevin +// SPDX - License - Identifier: GPL - 3.0 + +#include "MantidDataHandling/NexusFileLoader.h"