Skip to content
Snippets Groups Projects
NexusFileLoader.h 1.02 KiB
Newer Older
Hahn, Steven's avatar
Hahn, Steven committed
// 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"
Hahn, Steven's avatar
Hahn, Steven committed
#include "MantidNexus/HDF5Descriptor.h"
Hahn, Steven's avatar
Hahn, Steven committed
#include "MantidKernel/System.h"

namespace Mantid {
namespace API {

Hahn, Steven's avatar
Hahn, Steven committed
class DLLExport NexusFileLoader : public IFileLoader<Mantid::Nexus::HDF5Descriptor> {
Hahn, Steven's avatar
Hahn, Steven committed
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;
Hahn, Steven's avatar
Hahn, Steven committed
  void setFileInfo(std::shared_ptr<Mantid::Nexus::HDF5Descriptor> fileInfo);
private:
  std::shared_ptr<Mantid::Nexus::HDF5Descriptor> m_fileInfo;
Hahn, Steven's avatar
Hahn, Steven committed
};
} // namespace API
} // namespace Mantid