STIR  6.2.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 
27 START_NAMESPACE_STIR
28 
29 namespace GE
30 {
31 namespace RDF_HDF5
32 {
33 
35 
40 class GEHDF5ListmodeInputFileFormat : public InputFileFormat<ListModeData>
41 {
42 public:
43  const std::string get_name() const override { return "GEHDF5"; }
44 
45 protected:
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 
49 public:
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
56 END_NAMESPACE_STIR
57 
58 #endif
A class to read/store the file signature.
Definition: FileSignature.h:34
Declaration of class stir::InputFileFormat.
unique_ptr< DataT > read_from_file(const FileSignature &signature, FileT file)
Function that reads data from file using the default InputFileFormatRegistry, using the provided File...
Definition: read_from_file.h:46
Base-class for file-formats for reading.
Definition: InputFileFormat.h:39
Class for being able to read list mode data from the GE Signa PET/MR scanner via the listmode-data re...
Definition: GEHDF5ListmodeInputFileFormat.h:40