10 #ifndef __stir_IO_ROOTListmodeInputFileFormat_h__ 11 #define __stir_IO_ROOTListmodeInputFileFormat_h__ 30 const std::string get_name()
const override {
return "ROOT"; }
33 bool actual_can_read(
const FileSignature& signature, std::istream& input)
const override 38 bool is_root_signature(
const char*
const signature)
const 41 const char* pos_of_colon = strchr(signature,
':');
42 if (pos_of_colon == NULL)
44 std::string keyword(signature, pos_of_colon - signature);
51 error(
"read_from_file for ROOT listmode data with istream not implemented %s:%s. Sorry", __FILE__, __LINE__);
52 return unique_ptr<data_type>();
55 unique_ptr<data_type>
read_from_file(
const std::string& filename)
const override A class to read/store the file signature.
Definition: FileSignature.h:34
This file declares various utility functions.
Declaration of class stir::CListModeDataROOT.
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
Functions useful for manipulating Interfile keywords.
void error(const char *const s,...)
Print error with format string a la printf and throw exception.
Definition: error.cxx:42
class that reads ROOT files, generated by GATE, as listmode data.
Definition: CListModeDataROOT.h:106