1 #ifndef __stir_IO_write_data_H__ 2 #define __stir_IO_write_data_H__ 27 template <
int num_dimensions,
class elemT>
51 template <
int num_dimensions,
class OStreamT,
class elemT>
53 const Array<num_dimensions, elemT>& data,
54 const ByteOrder byte_order = ByteOrder::native,
55 const bool can_corrupt_data =
false);
72 template <
int num_dimensions,
class OStreamT,
class elemT,
class OutputType,
class ScaleT>
74 const Array<num_dimensions, elemT>& data,
75 NumericInfo<OutputType> output_type,
77 const ByteOrder byte_order = ByteOrder::native,
78 const bool can_corrupt_data =
false);
97 template <
int num_dimensions,
class OStreamT,
class elemT,
class OutputType,
class ScaleT>
99 const Array<num_dimensions, elemT>& data,
100 NumericInfo<OutputType> output_type,
101 const ScaleT scale_factor,
102 const ByteOrder byte_order = ByteOrder::native,
103 const bool can_corrupt_data =
false);
121 template <
int num_dimensions,
class OStreamT,
class elemT,
class ScaleT>
123 const Array<num_dimensions, elemT>& data,
126 const ByteOrder byte_order = ByteOrder::native,
127 const bool can_corrupt_data =
false);
This file declares the stir::ByteOrder class.
Succeeded write_data(OStreamT &s, const Array< num_dimensions, elemT > &data, NumericType type, ScaleT &scale, const ByteOrder byte_order=ByteOrder::native, const bool can_corrupt_data=false)
Write the data of an Array to file as a different type.
Definition: write_data.inl:115
Succeeded write_data_with_fixed_scale_factor(OStreamT &s, const Array< num_dimensions, elemT > &data, NumericInfo< OutputType > output_type, const ScaleT scale_factor, const ByteOrder byte_order=ByteOrder::native, const bool can_corrupt_data=false)
Write the data of an Array to file as a different type but using a given scale factor.
Definition: write_data.inl:82
Implementation of stir::write_data() functions for writing stir::Array's to file. ...