Mantid
Loading...
Searching...
No Matches
RegisterFileLoader.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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
10
19#define DECLARE_FILELOADER_ALGORITHM(classname) \
20 namespace { \
21 Mantid::Kernel::RegistrationHelper reg_loader_##classname( \
22 (Mantid::API::FileLoaderRegistry::Instance().subscribe<classname>(Mantid::API::FileLoaderRegistryImpl::Generic), \
23 0)); \
24 }
25
33#define DECLARE_NEXUS_FILELOADER_ALGORITHM(classname) \
34 namespace { \
35 Mantid::Kernel::RegistrationHelper reg_hdf_loader_##classname( \
36 (Mantid::API::FileLoaderRegistry::Instance().subscribe<classname>(Mantid::API::FileLoaderRegistryImpl::Nexus), \
37 0)); \
38 }
39
47#define DECLARE_NEXUS_HDF5_FILELOADER_ALGORITHM(classname) \
48 namespace { \
49 Mantid::Kernel::RegistrationHelper \
50 reg_hdf_loader_##classname((Mantid::API::FileLoaderRegistry::Instance().subscribe<classname>( \
51 Mantid::API::FileLoaderRegistryImpl::NexusHDF5), \
52 0)); \
53 }