21 #ifndef __stir_IO_OutputFileFormat_H__ 22 #define __stir_IO_OutputFileFormat_H__ 54 template <
typename DataT>
59 static shared_ptr<OutputFileFormat<DataT>> default_sptr();
95 float get_scale_to_write_data()
const;
119 virtual void set_byte_order_and_type_of_numbers(
ByteOrder&,
NumericType&,
const bool warn =
false);
131 virtual float set_scale_to_write_data(
const float new_scale_to_write_data,
const bool warn =
false);
152 virtual Succeeded actual_write_to_file(std::string& filename,
const DataT& density)
const = 0;
158 void set_defaults()
override;
161 void initialise_keymap()
override;
164 bool post_processing()
override;
167 void set_key_values()
override;
170 static shared_ptr<OutputFileFormat<DataT>> _default_sptr;
172 static ASCIIlist_type number_format_values;
173 static ASCIIlist_type byte_order_values;
177 int number_format_index;
178 int byte_order_index;
This file declares the stir::ByteOrder class.
This class provides member functions to find out what byte-order your machine is and to swap numbers...
Definition: ByteOrder.h:99
std::string write_to_file(const std::string &filename, const DataT &data)
Function that writes data to file using the default OutputFileFormat.
Definition: write_to_file.h:47
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
provides names for some numeric types and methods for finding their properties.
Definition: NumericType.h:54
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition: Succeeded.h:43
This file declares the stir::NumericType class.