STIR  6.2.0
Namespaces | Macros | Functions

Implementation of stir::write_data() functions for writing stir::Array's to file. More...

#include "stir/Array.h"
#include "stir/convert_array.h"
#include "stir/NumericType.h"
#include "stir/NumericInfo.h"
#include "stir/ByteOrder.h"
#include "stir/Succeeded.h"
#include "stir/detail/test_if_1d.h"
#include "stir/IO/write_data_1d.h"
#include "stir/warning.h"
#include <typeinfo>

Namespaces

 stir
 Namespace for the STIR library (and some/most of its applications)
 
 stir::detail
 Namespace for the implementation details of the STIR library.
 

Macros

#define CASE(NUMERICTYPE)
 

Functions

template<int num_dimensions, class OStreamT , class elemT , class OutputType , class ScaleT >
Succeeded stir::detail::write_data_with_fixed_scale_factor_help (is_not_1d, OStreamT &s, const Array< num_dimensions, elemT > &data, NumericInfo< OutputType > output_type, const ScaleT scale_factor, const ByteOrder byte_order, const bool can_corrupt_data)
 
template<class OStreamT , class elemT , class OutputType , class ScaleT >
Succeeded stir::detail::write_data_with_fixed_scale_factor_help (is_1d, OStreamT &s, const Array< 1, elemT > &data, NumericInfo< OutputType >, const ScaleT scale_factor, const ByteOrder byte_order, const bool can_corrupt_data)
 
template<int num_dimensions, class OStreamT , class elemT , class OutputType , class ScaleT >
Succeeded stir::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. More...
 
template<int num_dimensions, class OStreamT , class elemT , class OutputType , class ScaleT >
Succeeded stir::write_data (OStreamT &s, const Array< num_dimensions, elemT > &data, NumericInfo< OutputType > output_type, 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. More...
 
template<int num_dimensions, class OStreamT , class elemT >
Succeeded stir::write_data (OStreamT &s, const Array< num_dimensions, elemT > &data, const ByteOrder byte_order=ByteOrder::native, const bool can_corrupt_data=false)
 Write the data of an Array to file. More...
 
template<int num_dimensions, class OStreamT , class elemT , class ScaleT >
Succeeded stir::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. More...
 

Detailed Description

Implementation of stir::write_data() functions for writing stir::Array's to file.

Author
Kris Thielemans

Macro Definition Documentation

◆ CASE

#define CASE (   NUMERICTYPE)
Value:
case NUMERICTYPE: \
return write_data(s, data, NumericInfo<typename TypeForNumericType<NUMERICTYPE>::type>(), scale, byte_order, can_corrupt_data)
Succeeded write_data(OStreamT &s, const Array< num_dimensions, elemT > &data, const ByteOrder byte_order=ByteOrder::native, const bool can_corrupt_data=false)
Write the data of an Array to file.
Definition: write_data.inl:108