STIR  6.2.0
Namespaces | Macros | Functions

Implementation of stir::read_data() functions for reading stir::Array's from file. More...

#include "stir/Array.h"
#include "stir/convert_array.h"
#include "stir/NumericType.h"
#include "stir/NumericInfo.h"
#include "stir/Succeeded.h"
#include "stir/ByteOrder.h"
#include "stir/detail/test_if_1d.h"
#include "stir/IO/read_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 IStreamT , class elemT >
Succeeded stir::detail::read_data_help (is_not_1d, IStreamT &s, Array< num_dimensions, elemT > &data, const ByteOrder byte_order)
 
template<class IStreamT , class elemT >
Succeeded stir::detail::read_data_help (is_1d, IStreamT &s, Array< 1, elemT > &data, const ByteOrder byte_order)
 
template<int num_dimensions, class IStreamT , class elemT >
Succeeded stir::read_data (IStreamT &s, Array< num_dimensions, elemT > &data, const ByteOrder byte_order=ByteOrder::native)
 Read the data of an Array from file. More...
 
template<int num_dimensions, class IStreamT , class elemT , class InputType , class ScaleT >
Succeeded stir::read_data (IStreamT &s, Array< num_dimensions, elemT > &data, NumericInfo< InputType > input_type, ScaleT &scale_factor, const ByteOrder byte_order=ByteOrder::native)
 Read the data of an Array from file as a different type. More...
 
template<int num_dimensions, class IStreamT , class elemT , class ScaleT >
Succeeded stir::read_data (IStreamT &s, Array< num_dimensions, elemT > &data, NumericType type, ScaleT &scale, const ByteOrder byte_order=ByteOrder::native)
 Read the data of an Array from file as a different type. More...
 

Detailed Description

Implementation of stir::read_data() functions for reading stir::Array's from file.

Author
Kris Thielemans

Macro Definition Documentation

◆ CASE

#define CASE (   NUMERICTYPE)
Value:
case NUMERICTYPE: \
return read_data(s, data, NumericInfo<typename TypeForNumericType<NUMERICTYPE>::type>(), scale, byte_order)
Succeeded read_data(IStreamT &s, Array< num_dimensions, elemT > &data, const ByteOrder byte_order=ByteOrder::native)
Read the data of an Array from file.
Definition: read_data.inl:63