Skip to content
Snippets Groups Projects
Commit a352421e authored by Hahn, Steven's avatar Hahn, Steven
Browse files

Get NexusFileLoader to build


Signed-off-by: default avatarSteven Hahn <hahnse@ornl.gov>
parent 71b0d278
No related branches found
No related tags found
No related merge requests found
......@@ -10,23 +10,20 @@
#include "MantidKernel/System.h"
#include "MantidNexus/NexusHDF5Descriptor.h"
namespace Mantid {
namespace API {
namespace Mantid::DataHandling {
class DLLExport NexusFileLoader
: public IFileLoader<Mantid::Nexus::NexusHDF5Descriptor> {
: public API::IFileLoader<Mantid::NeXus::NexusHDF5Descriptor> {
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;
boost::shared_ptr<Algorithm> createChildAlgorithm(
const std::string &name, const double startProgress = -1.,
const double endProgress = -1., const bool enableLogging = true,
const int &version = -1) override;
void
setFileInfo(std::shared_ptr<Mantid::Nexus::NexusHDF5Descriptor> fileInfo);
setFileInfo(std::shared_ptr<Mantid::NeXus::NexusHDF5Descriptor> fileInfo);
private:
std::shared_ptr<Mantid::Nexus::NexusHDF5Descriptor> m_fileInfo;
std::shared_ptr<Mantid::NeXus::NexusHDF5Descriptor> m_fileInfo;
};
} // namespace API
} // namespace Mantid
} // namespace Mantid::DataHandling
......@@ -8,13 +8,16 @@
namespace Mantid::DataHandling {
void NexusFileLoader::exec() {}
void createChildAlgorithm(const std::string &name,
const double startProgress,
const double endProgress,
const bool enableLogging,
const int &version) {}
void
setFileInfo(std::shared_ptr<Mantid::Nexus::NexusHDF5Descriptor> fileInfo) {
m_fileinfo = std::move(fileInfo);
boost::shared_ptr<Mantid::API::Algorithm>
NexusFileLoader::createChildAlgorithm(const std::string &name,
const double startProgress,
const double endProgress,
const bool enableLogging,
const int &version) {
return nullptr;
}
void NexusFileLoader::setFileInfo(
std::shared_ptr<Mantid::NeXus::NexusHDF5Descriptor> fileInfo) {
m_fileInfo = std::move(fileInfo);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment