Skip to content
Snippets Groups Projects
NexusFileLoader.cpp 1.34 KiB
Newer Older
Hahn, Steven's avatar
Hahn, Steven committed
// 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"
Hahn, Steven's avatar
Hahn, Steven committed

namespace Mantid::DataHandling {
void NexusFileLoader::exec() { execLoader(); }
void NexusFileLoader::execLoader() {}
boost::shared_ptr<Mantid::API::Algorithm> NexusFileLoader::createChildAlgorithm(
    const std::string &name, const double startProgress,
    const double endProgress, const bool enableLogging, const int &version) {
  auto child = API::IFileLoader<
      Mantid::Kernel::NexusHDF5Descriptor>::createChildAlgorithm(name,
                                                                 startProgress,
                                                                 endProgress,
                                                                 enableLogging,
                                                                 version);
  auto nfl = boost::dynamic_pointer_cast<NexusFileLoader>(child);
  if (nfl) {
    nfl->setFileInfo(m_fileInfo);
  }
  return child;
  }
  void NexusFileLoader::setFileInfo(
      std::shared_ptr<Mantid::Kernel::NexusHDF5Descriptor> fileInfo) {
    m_fileInfo = std::move(fileInfo);
Hahn, Steven's avatar
Hahn, Steven committed
}