21#ifndef __stir_listmode_ListModeData_H__
22#define __stir_listmode_ListModeData_H__
31#ifdef BOOST_NO_STDC_NAMESPACE
134 ListModeData(shared_ptr<const ExamInfo> exam_info_sptr, shared_ptr<const ProjDataInfo> proj_data_info_sptr)
162 get_scan_start_time_in_secs_since_1970()
const;
172 return this->get_empty_record_helper_sptr();
178 return get_next(event);
224 error(
"ListModeData: The function get_total_number_of_events() is currently not supported for this file format.");
229 virtual shared_ptr<ListRecord> get_empty_record_helper_sptr()
const = 0;
231 virtual void set_proj_data_info_sptr(shared_ptr<const ProjDataInfo>);
declaration of stir::DataWithProjDataInfo
declaration of stir::ExamData
Declarations of classes stir::ListRecord which is used for list mode data.
Declaration of class stir::RegisteredParsingObject.
DataWithProjDataInfo()
Default constructor sets internal member to 0.
Definition DataWithProjDataInfo.cxx:20
ExamData()
ExamData.
Definition ExamData.cxx:21
The base class for reading list mode data.
Definition ListModeData.h:123
shared_ptr< ListRecord > get_empty_record_sptr() const
Get a pointer to an empty record.
Definition ListModeData.h:170
ListModeData hierarchy_base_type
typedef used by read_from_file
Definition ListModeData.h:126
const Scanner & get_scanner() const
Get reference to scanner.
Definition ListModeData.cxx:34
virtual Succeeded set_get_position(const SavedPosition &)=0
Set the position for reading to a previously saved point.
unsigned int SavedPosition
Use this typedef for save/set_get_position.
Definition ListModeData.h:129
virtual bool has_delayeds() const =0
Return if the file stores delayed events as well (as opposed to prompts)
virtual SavedPosition save_get_position()=0
Save the current reading position.
virtual std::string get_name() const =0
Returns the name of the list mode data.
virtual Succeeded get_next_record(ListRecord &event) const
Gets the next record in the listmode sequence.
Definition ListModeData.h:176
virtual unsigned long int get_total_number_of_events() const
Returns the total number of events in the listmode file.
Definition ListModeData.h:222
virtual Succeeded reset()=0
Call this function if you want to re-start reading at the beginning.
ListModeData()
Default constructor.
Definition ListModeData.cxx:27
A class for a general element of a list mode file.
Definition ListRecord.h:45
A class for storing some info on the scanner.
Definition Scanner.h:108
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition Succeeded.h:44
Declaration of stir::error()
void error(const char *const s,...)
Print error with format string a la printf and throw exception.
Definition error.cxx:42