21 #ifndef __stir_listmode_ListModeData_H__ 22 #define __stir_listmode_ListModeData_H__ 31 #ifdef BOOST_NO_STDC_NAMESPACE 146 virtual std::string get_name()
const = 0;
167 get_scan_start_time_in_secs_since_1970()
const;
177 return this->get_empty_record_helper_sptr();
183 return get_next(event);
207 virtual SavedPosition save_get_position() = 0;
211 virtual Succeeded set_get_position(
const SavedPosition&) = 0;
217 const Scanner& get_scanner()
const;
220 virtual bool has_delayeds()
const = 0;
226 error(
"ListModeData: The function get_total_number_of_events() is currently not supported for this file format.");
230 virtual shared_ptr<const ProjDataInfo> get_proj_data_info_sptr()
const;
233 virtual shared_ptr<ListRecord> get_empty_record_helper_sptr()
const = 0;
235 virtual void set_proj_data_info_sptr(shared_ptr<const ProjDataInfo>);
virtual Succeeded get_next_record(ListRecord &event) const
Gets the next record in the listmode sequence.
Definition: ListModeData.h:181
Declaration of class stir::ProjDataInfo.
declaration of stir::ExamData
shared_ptr< ListRecord > get_empty_record_sptr() const
Get a pointer to an empty record.
Definition: ListModeData.h:175
unsigned int SavedPosition
Use this typedef for save/set_get_position.
Definition: ListModeData.h:130
The base class for reading list mode data.
Definition: ListModeData.h:123
Declaration of stir::error()
A class for storing some info on the scanner.
Definition: Scanner.h:107
A class for a general element of a list mode file.
Definition: ListRecord.h:44
shared_ptr< const ProjDataInfo > proj_data_info_sptr
Has to be set by the derived class.
Definition: ListModeData.h:239
void error(const char *const s,...)
Print error with format string a la printf and throw exception.
Definition: error.cxx:42
Declarations of classes stir::ListRecord which is used for list mode data.
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition: Succeeded.h:43
Declaration of class stir::RegisteredParsingObject.
ListModeData hierarchy_base_type
typedef used by read_from_file
Definition: ListModeData.h:127
virtual unsigned long int get_total_number_of_events() const
Returns the total number of events in the listmode file.
Definition: ListModeData.h:224
base class for data objects such as ProjData etcProvides an ExamInfo member.
Definition: ExamData.h:33