17 #ifndef __stir_IO_InputStreamWithRecordsFromUPENN_H__ 18 #define __stir_IO_InputStreamWithRecordsFromUPENN_H__ 43 typedef std::vector<long long int>::size_type SavedPosition;
47 unsigned long int get_total_number_of_events(CListRecordPENN& record);
49 virtual inline Succeeded create_output_file(
const std::string ofilename) = 0;
55 virtual Succeeded get_next_record(CListRecordPENN& record) = 0;
60 virtual SavedPosition save_get_position() = 0;
62 virtual Succeeded set_get_position(
const SavedPosition&) = 0;
64 inline std::vector<std::streampos> get_saved_get_positions()
const;
66 inline void set_saved_get_positions(
const std::vector<std::streampos>&);
68 inline std::streambuf& get_stream()
74 virtual void set_current_record() = 0;
76 virtual void set_new_record(
const bool& d,
78 const unsigned short int& _xa,
79 const unsigned short int& _xb,
80 const unsigned short int& _za,
81 const unsigned short int& _zb,
82 const unsigned short int& _ea,
83 const unsigned short int& _eb)
87 virtual void set_defaults();
88 virtual void initialise_keymap();
89 virtual bool post_processing();
92 std::streampos starting_stream_position;
93 std::vector<std::streampos> saved_get_positions;
96 const uint8_t* current_record;
100 int low_energy_window = 0;
101 int up_energy_window = 1000;
110 bool has_output =
false;
127 #include "stir/IO/InputStreamWithRecordsFromUPENN.inl"
Declaration of class stir::Succeeded.
Import of std::shared_ptr, std::dynamic_pointer_cast and std::static_pointer_cast (or corresponding b...
Classes for listmode events for the PENNPET Explorer scanner.
Declaration of class stiir::RegisteredObject.
Helper class to provide registry mechanisms to a Base classSuppose you have a hierarchy of classes wi...
Definition: RegisteredObject.h:95
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition: Succeeded.h:43