Mantid
Loading...
Searching...
No Matches
Macros
RegisterFileLoader.h File Reference
#include "MantidAPI/FileLoaderRegistry.h"

Go to the source code of this file.

Macros

#define DECLARE_FILELOADER_ALGORITHM(classname)
 DECLARE_FILELOADER_ALGORITHM should be used in place of the standard DECLARE_ALGORITHM macro when writing a file loading algorithm that loads data from a type that is not one of the specialized types. More...
 
#define DECLARE_NEXUS_FILELOADER_ALGORITHM(classname)
 DECLARE_NEXUS_FILELOADER_ALGORITHM should be used in place of the standard DECLARE_ALGORITHM macro when writing a file loading algorithm that loads data using the Nexus API It both registers the algorithm as usual and subscribes it to the registry. More...
 
#define DECLARE_NEXUS_HDF5_FILELOADER_ALGORITHM(classname)
 DECLARE_NEXUS_HDF5_FILELOADER_ALGORITHM should be used in place of the standard DECLARE_ALGORITHM macro when writing a file loading algorithm that loads data using the Nexus API It both registers the algorithm as usual and subscribes it to the registry. More...
 

Macro Definition Documentation

◆ DECLARE_FILELOADER_ALGORITHM

#define DECLARE_FILELOADER_ALGORITHM (   classname)
Value:
namespace { \
Mantid::Kernel::RegistrationHelper reg_loader_##classname( \
0)); \
}
This class is simply used in the subscription of classes into the various factories in Mantid.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...

DECLARE_FILELOADER_ALGORITHM should be used in place of the standard DECLARE_ALGORITHM macro when writing a file loading algorithm that loads data from a type that is not one of the specialized types.

See FileLoaderRegistryImpl::LoaderFormat It both registers the algorithm as usual and subscribes it to the registry.

Definition at line 19 of file RegisterFileLoader.h.

◆ DECLARE_NEXUS_FILELOADER_ALGORITHM

#define DECLARE_NEXUS_FILELOADER_ALGORITHM (   classname)
Value:

DECLARE_NEXUS_FILELOADER_ALGORITHM should be used in place of the standard DECLARE_ALGORITHM macro when writing a file loading algorithm that loads data using the Nexus API It both registers the algorithm as usual and subscribes it to the registry.

Definition at line 33 of file RegisterFileLoader.h.

◆ DECLARE_NEXUS_HDF5_FILELOADER_ALGORITHM

#define DECLARE_NEXUS_HDF5_FILELOADER_ALGORITHM (   classname)
Value:
namespace { \
Mantid::Kernel::RegistrationHelper \
reg_hdf_loader_##classname((Mantid::API::FileLoaderRegistry::Instance().subscribe<classname>( \
0)); \
}

DECLARE_NEXUS_HDF5_FILELOADER_ALGORITHM should be used in place of the standard DECLARE_ALGORITHM macro when writing a file loading algorithm that loads data using the Nexus API It both registers the algorithm as usual and subscribes it to the registry.

Definition at line 47 of file RegisterFileLoader.h.