18 #ifndef __stir_IO_InputStreamWithRecordsFromUPENNtxt_H__ 19 #define __stir_IO_InputStreamWithRecordsFromUPENNtxt_H__ 36 InputStreamWithRecordsFromUPENN,
37 InputStreamWithRecordsFromUPENN>
42 InputStreamWithRecordsFromUPENN>
46 static const char*
const registered_name;
48 InputStreamWithRecordsFromUPENNtxt();
50 virtual ~InputStreamWithRecordsFromUPENNtxt() {}
52 virtual inline Succeeded create_output_file(
const std::string ofilename);
56 virtual std::string method_info()
const;
58 virtual Succeeded get_next_record(CListRecordPENN& record);
67 virtual SavedPosition save_get_position();
70 virtual Succeeded set_get_position(
const SavedPosition&);
72 inline std::istream& get_stream() {
return *this->stream_ptr; }
74 virtual void set_current_record();
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);
86 virtual void set_defaults();
87 virtual void initialise_keymap();
88 virtual bool post_processing();
91 shared_ptr<std::istream> stream_ptr =
nullptr;
93 std::streampos starting_stream_position;
95 std::vector<std::streampos> saved_get_positions;
97 shared_ptr<std::string> line;
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.