19 #ifndef __stir_IO_InputStreamWithRecordsFromUPENNbin_H__ 20 #define __stir_IO_InputStreamWithRecordsFromUPENNbin_H__ 37 InputStreamWithRecordsFromUPENN,
38 InputStreamWithRecordsFromUPENN>
43 InputStreamWithRecordsFromUPENN>
47 static const char*
const registered_name;
49 InputStreamWithRecordsFromUPENNbin();
51 virtual ~InputStreamWithRecordsFromUPENNbin()
57 virtual inline Succeeded create_output_file(
const std::string ofilename);
61 virtual std::string method_info()
const;
63 virtual Succeeded get_next_record(CListRecordPENN& record);
67 virtual SavedPosition save_get_position();
69 virtual Succeeded set_get_position(
const SavedPosition&);
71 inline std::streambuf& get_stream()
75 const PET::ListFileHeader* get_file_header()
const;
77 virtual void set_current_record();
79 virtual void set_new_record(
const bool& d,
81 const unsigned short int& _xa,
82 const unsigned short int& _xb,
83 const unsigned short int& _za,
84 const unsigned short int& _zb,
85 const unsigned short int& _ea,
86 const unsigned short int& _eb);
89 virtual void set_defaults();
90 virtual void initialise_keymap();
91 virtual bool post_processing();
94 void set_record(
const uint8_t* e);
96 list::EventFormat eventFormat;
97 list::EventCodec* eventCodec =
nullptr;
98 list::InputBuffer* in =
nullptr;
99 PET::ListFileHeader listHeader;
100 std::filebuf inputListFile;
101 std::streambuf* inputList;
104 list::EventCodec* olistCodec =
nullptr;
105 std::filebuf outputListFile;
106 std::streambuf* outputList;
108 list::OutputBuffer* out =
nullptr;
110 std::streampos starting_stream_position;
112 std::vector<std::streampos> saved_get_positions;
115 const uint8_t* current_record;
119 bool has_output =
false;
Parent class for all leaves in a RegisteredObject hierarchy that do parsing of parameter files...
Definition: RegisteredParsingObject.h:77
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.