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_LEGACY_NEXUS_FILELOADER_ALGORITHM(classname) \
34 namespace { \
35 Mantid::Kernel::RegistrationHelper \
36 reg_hdf_loader_##classname((Mantid::API::FileLoaderRegistry::Instance().subscribe<classname>( \
37 Mantid::API::FileLoaderRegistryImpl::LegacyNexus), \
38 0)); \
39 }
40
48#define DECLARE_NEXUS_FILELOADER_ALGORITHM(classname) \
49 namespace { \
50 Mantid::Kernel::RegistrationHelper reg_hdf_loader_##classname( \
51 (Mantid::API::FileLoaderRegistry::Instance().subscribe<classname>(Mantid::API::FileLoaderRegistryImpl::Nexus), \
52 0)); \
53 }