STIR  6.2.0
Public Member Functions | Protected Member Functions | List of all members
stir::PENNListmodeInputFileFormat Class Reference

Base class for PENN listmode file format support. More...

#include "stir/IO/PENNListmodeInputFileFormat.h"

Inheritance diagram for stir::PENNListmodeInputFileFormat:
Inheritance graph
[legend]

Public Member Functions

virtual const std::string get_name () const
 
virtual unique_ptr< data_typeread_from_file (std::istream &input) const
 read data from a stream More...
 
virtual unique_ptr< data_typeread_from_file (const std::string &filename) const
 read data from a filename More...
 
- Public Member Functions inherited from stir::InputFileFormat< ListModeData >
virtual bool can_read (const FileSignature &signature, std::istream &input) const
 
virtual bool can_read (const FileSignature &signature, const std::string &filename) const
 

Protected Member Functions

virtual bool actual_can_read (const FileSignature &signature, std::istream &input) const
 
bool is_penn_signature (const char *const signature) const
 

Additional Inherited Members

- Public Types inherited from stir::InputFileFormat< ListModeData >
typedef ListModeData data_type
 

Detailed Description

Base class for PENN listmode file format support.

Author
Nikos Efthimiou

Member Function Documentation

◆ read_from_file() [1/2]

virtual unique_ptr<data_type> stir::PENNListmodeInputFileFormat::read_from_file ( std::istream &  input) const
inlinevirtual

read data from a stream

This function should throw an exception if the read fails.

Warning
This member throws for most implementations. Use a filename instead.

Implements stir::InputFileFormat< ListModeData >.

References stir::error().

◆ read_from_file() [2/2]

virtual unique_ptr<data_type> stir::PENNListmodeInputFileFormat::read_from_file ( const std::string &  filename) const
inlinevirtual

read data from a filename

This function should throw an exception if the read fails.

Default implementation used open_read_binary and read_from_file(std::istream&).

Reimplemented from stir::InputFileFormat< ListModeData >.


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