STIR  6.2.0
Public Types | Public Member Functions | List of all members
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.


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