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

Class for reading images in Interfile file-format. More...

#include "stir/IO/InterfileDynamicDiscretisedDensityInputFileFormat.h"

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

Public Member Functions

const std::string get_name () const override
 
- Public Member Functions inherited from stir::InputFileFormat< DynamicDiscretisedDensity >
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

bool actual_can_read (const FileSignature &signature, std::istream &) const override
 
unique_ptr< data_typeread_from_file (std::istream &) const override
 read data from a stream More...
 
unique_ptr< data_typeread_from_file (const std::string &filename) const override
 read data from a filename More...
 

Additional Inherited Members

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

Detailed Description

Class for reading images in Interfile file-format.

Member Function Documentation

◆ read_from_file() [1/2]

unique_ptr<data_type> stir::InterfileDynamicDiscretisedDensityInputFileFormat::read_from_file ( std::istream &  input) const
inlineoverrideprotectedvirtual

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< DynamicDiscretisedDensity >.

◆ read_from_file() [2/2]

unique_ptr<data_type> stir::InterfileDynamicDiscretisedDensityInputFileFormat::read_from_file ( const std::string &  filename) const
inlineoverrideprotectedvirtual

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< DynamicDiscretisedDensity >.

References stir::read_interfile_dynamic_image().


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