STIR 6.4.0
read_data_1d.h
Go to the documentation of this file.
1#ifndef __stir_IO_read_data_1d_H__
2#define __stir_IO_read_data_1d_H__
11/*
12 Copyright (C) 2004- 2009, Hammersmith Imanet Ltd
13 This file is part of STIR.
14
15 SPDX-License-Identifier: Apache-2.0
16
17 See STIR/LICENSE.txt for details
18*/
19#include "stir/ArrayFwd.h"
20#include <stdio.h>
21#include <iostream>
22
23START_NAMESPACE_STIR
24class Succeeded;
25class ByteOrder;
26
27namespace detail
28{
35template <int num_dimensions, class elemT>
36inline Succeeded read_data_1d(std::istream& s, ArrayType<num_dimensions, elemT>& data, const ByteOrder byte_order);
37
38/* \ingroup Array_IO_detail
39 \brief This is the (internal) function that does the actual reading from a FILE*.
40 \internal
41 */
42template <int num_dimensions, class elemT>
43inline Succeeded read_data_1d(FILE*&, ArrayType<num_dimensions, elemT>& data, const ByteOrder byte_order);
44
45} // end namespace detail
46END_NAMESPACE_STIR
47
49
50#endif
forward declaration of stir::Array class for multi-dimensional (numeric) arrays
Succeeded read_data_1d(std::istream &s, ArrayType< num_dimensions, elemT > &data, const ByteOrder byte_order)
This is an internal function called by read_data(). It does the actual reading to std::istream.
Definition read_data_1d.inl:33
Implementation of stir::read_data_1d() functions.