STIR
6.2.0
|
A helper class to allow automatic registration to the default InputFileFormatRegistry. More...
#include "stir/IO/InputFileFormatRegistry.h"
Public Types | |
typedef Format::data_type | data_type |
Public Member Functions | |
RegisterInputFileFormat (const unsigned ranking) | |
constructor adds the Format to the registry with the given ranking . | |
~RegisterInputFileFormat () | |
Destructor remove the format from the registry. | |
A helper class to allow automatic registration to the default InputFileFormatRegistry.
If you have a variable of type RegisterInputFileFormat<MyInputFileFormat>, MyInputFileFormat
will be added to the default registry, as long as that variable is not destructed.
This is used in STIR in the IO/IO_registries.cxx file.