10 #ifndef __stir_IO_PENNListmodeInputFileFormat_h__ 11 #define __stir_IO_PENNListmodeInputFileFormat_h__ 28 virtual const std::string get_name()
const {
return "PENN"; }
31 virtual bool actual_can_read(
const FileSignature& signature, std::istream& input)
const 36 bool is_penn_signature(
const char*
const signature)
const 39 const char* pos_of_colon = strchr(signature,
':');
40 if (pos_of_colon == NULL)
42 std::string keyword(signature, pos_of_colon - signature);
49 error(
"read_from_file for PENN listmode data with istream not implemented %s:%s. Sorry", __FILE__, __LINE__);
50 return unique_ptr<data_type>();
53 virtual unique_ptr<data_type>
read_from_file(
const std::string& filename)
const A class to read/store the file signature.
Definition: FileSignature.h:34
This file declares various utility functions.
Declaration of stir::error()
const char * get_signature() const
get access to the signature
Definition: FileSignature.h:52
string standardise_interfile_keyword(const string &keyword)
Put a (Interfile) keyword into a standard form.
Definition: interfile_keyword_functions.cxx:28
void error(const char *const s,...)
Print error with format string a la printf and throw exception.
Definition: error.cxx:42
Declaration of class stir::CListModeDataPENN.
Base class for listmode data for PENNPET Explorer scanner.
Definition: CListModeDataPENN.h:27