1 #ifndef __stir_IO_ECAT8_32bitListmodeInputFileFormat_h__ 2 #define __stir_IO_ECAT8_32bitListmodeInputFileFormat_h__ 39 const std::string get_name()
const override {
return "ECAT8_32bit"; }
42 bool actual_can_read(
const FileSignature& signature, std::istream& input)
const override 48 const std::string signature_as_string(signature.
get_signature(), signature.
size());
49 return signature_as_string.find(
"PETLINK") != std::string::npos;
56 error(
"read_from_file for ECAT8_32bit listmode data with istream not implemented %s:%s. Sorry", __FILE__, __LINE__);
57 return unique_ptr<data_type>();
59 unique_ptr<data_type>
read_from_file(
const std::string& filename)
const override bool is_interfile_signature(const char *const signature)
Checks if the signature corresponds to the start of an interfile header.
Definition: interfile.cxx:75
A class to read/store the file signature.
Definition: FileSignature.h:34
This file declares various utility functions.
Declarations of functions which read/write Interfile data.
Declaration of stir::error()
const char * get_signature() const
get access to the signature
Definition: FileSignature.h:52
A class that reads the listmode data for Siemens scanners.
Definition: CListModeDataECAT8_32bit.h:42
void error(const char *const s,...)
Print error with format string a la printf and throw exception.
Definition: error.cxx:42
std::size_t size() const
return size of valid signature read from the file
Definition: FileSignature.h:55
Declaration of class stir::ecat::CListModeDataECAT8_32bit.