STIR 6.4.0
GEHDF5ListmodeInputFileFormat.h
Go to the documentation of this file.
1#ifndef __stir_IO_GEHDF5ListmodeInputFileFormat_h__
2#define __stir_IO_GEHDF5ListmodeInputFileFormat_h__
3/*
4 Copyright (C) 2016-2019 University College London
5 Copyright (C) 2017-2019 University of Leeds
6 Copyright (C) 2017-2019 University of Hull
7 This file is part of STIR.
8
9 SPDX-License-Identifier: Apache-2.0
10
11 See STIR/LICENSE.txt for details
12*/
26
27START_NAMESPACE_STIR
28
29namespace GE
30{
31namespace RDF_HDF5
32{
33
35
41{
42public:
43 const std::string get_name() const override { return "GEHDF5"; }
44
45protected:
46 bool actual_can_read(const FileSignature& signature, std::istream& input) const override;
47 bool can_read(const FileSignature& signature, const std::string& filename) const override;
48
49public:
50 unique_ptr<data_type> read_from_file(std::istream& input) const override;
51 unique_ptr<data_type> read_from_file(const std::string& filename) const override;
52};
53
54} // namespace RDF_HDF5
55} // namespace GE
56END_NAMESPACE_STIR
57
58#endif
Declaration of class stir::InputFileFormat.
A class to read/store the file signature.
Definition FileSignature.h:35
Class for being able to read list mode data from the GE Signa PET/MR scanner via the listmode-data re...
Definition GEHDF5ListmodeInputFileFormat.h:41
unique_ptr< data_type > read_from_file(std::istream &input) const override
read data from a stream
Definition GEHDF5ListmodeInputFileFormat.cxx:77
Base-class for file-formats for reading.
Definition InputFileFormat.h:40