STIR 6.5.0
stir::RegisterInputFileFormat< Format > Struct Template Reference

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.

Detailed Description

template<class Format>
struct stir::RegisterInputFileFormat< Format >

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.

Constructor & Destructor Documentation

◆ RegisterInputFileFormat()

template<class Format>
stir::RegisterInputFileFormat< Format >::RegisterInputFileFormat ( const unsigned ranking)
inlineexplicit

constructor adds the Format to the registry with the given ranking.

References stir::InputFileFormatRegistry< DataT >::default_sptr().

◆ ~RegisterInputFileFormat()

template<class Format>
stir::RegisterInputFileFormat< Format >::~RegisterInputFileFormat ( )
inline

Destructor remove the format from the registry.

References stir::InputFileFormatRegistry< DataT >::default_sptr().


The documentation for this struct was generated from the following file: