STIR  6.2.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__
3 
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/common.h"
20 #include <stdio.h>
21 #include <iostream>
22 
23 START_NAMESPACE_STIR
24 class Succeeded;
25 class ByteOrder;
26 template <int num_dimensions, class elemT>
27 class Array;
28 
29 namespace detail
30 {
37 template <int num_dimensions, class elemT>
38 inline Succeeded read_data_1d(std::istream& s, Array<num_dimensions, elemT>& data, const ByteOrder byte_order);
39 
40 /* \ingroup Array_IO_detail
41  \brief This is the (internal) function that does the actual reading from a FILE*.
42  \internal
43  */
44 template <int num_dimensions, class elemT>
45 inline Succeeded read_data_1d(FILE*&, Array<num_dimensions, elemT>& data, const ByteOrder byte_order);
46 
47 } // end namespace detail
48 END_NAMESPACE_STIR
49 
50 #include "stir/IO/read_data_1d.inl"
51 
52 #endif
Succeeded read_data_1d(std::istream &s, Array< 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.
basic configuration include file