STIR  6.3.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/ArrayFwd.h"
20 #include <stdio.h>
21 #include <iostream>
22 
23 START_NAMESPACE_STIR
24 class Succeeded;
25 class ByteOrder;
26 
27 namespace detail
28 {
35 template <int num_dimensions, class elemT>
36 inline 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  */
42 template <int num_dimensions, class elemT>
43 inline Succeeded read_data_1d(FILE*&, ArrayType<num_dimensions, elemT>& data, const ByteOrder byte_order);
44 
45 } // end namespace detail
46 END_NAMESPACE_STIR
47 
48 #include "stir/IO/read_data_1d.inl"
49 
50 #endif
forward declaration of stir::Array class for multi-dimensional (numeric) arrays
Converts a string literal into a format string that will be parsed at compile time and converted into...
Definition: args.h:20
Implementation of stir::read_data_1d() functions.
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