17#ifndef __stir_listmode_ListModeData_dummy_H__
18#define __stir_listmode_ListModeData_dummy_H__
48 ListModeData_dummy(shared_ptr<const ExamInfo> exam_info_sptr, shared_ptr<const ProjDataInfo> proj_data_info_sptr)
52 std::string
get_name()
const override {
return std::string(
"ListModeData_dummy"); }
56 error(
"ListModeData_dummy does not have reset()");
62 error(
"ListModeData_dummy does not have save_get_position()");
68 error(
"ListModeData_dummy does not have set_get_position()");
74 error(
"ListModeData_dummy does not have has_delayeds()");
79 shared_ptr<ListRecord> get_empty_record_helper_sptr()
const override
81 error(
"ListModeData_dummy does not have get_empty_record_helper_sptr()");
84 Succeeded get_next(ListRecord& event)
const override
86 error(
"ListModeData_dummy does not have get_next()");
Declaration of class stir::ListModeData.
std::string get_name() const override
Returns the name of the list mode data.
Definition ListModeData_dummy.h:52
SavedPosition save_get_position() override
Save the current reading position.
Definition ListModeData_dummy.h:60
Succeeded set_get_position(const SavedPosition &) override
Set the position for reading to a previously saved point.
Definition ListModeData_dummy.h:66
Succeeded reset() override
Call this function if you want to re-start reading at the beginning.
Definition ListModeData_dummy.h:54
bool has_delayeds() const override
Return if the file stores delayed events as well (as opposed to prompts)
Definition ListModeData_dummy.h:72
unsigned int SavedPosition
Use this typedef for save/set_get_position.
Definition ListModeData.h:129
ListModeData()
Default constructor.
Definition ListModeData.cxx:27
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