1#ifndef __stir_IO_InputFileFormatRegistry_h__
2#define __stir_IO_InputFileFormatRegistry_h__
45 typedef DataT data_type;
49 typedef shared_ptr<Factory> FactorySPtr;
107 typedef typename std::multimap<unsigned, FactorySPtr> _registry_type;
108 typedef typename _registry_type::const_iterator const_iterator;
109 typedef typename _registry_type::iterator iterator;
111 _registry_type _registry;
113 bool _valid(const_iterator iter)
const {
return iter != this->_registry.end(); }
116 template <
class File>
123 if (iter->second->can_read(signature, input))
139template <
class Format>
142 typedef typename Format::data_type data_type;
146 shared_ptr<InputFileFormat<data_type>> format_sptr(
new Format);
A class to read/store the file signature.
Definition FileSignature.h:35
Import of std::shared_ptr, std::dynamic_pointer_cast and std::static_pointer_cast into the stir names...