STIR  6.2.0
write_data_1d.h
Go to the documentation of this file.
1 #ifndef __stir_IO_write_data_1d_H__
2 #define __stir_IO_write_data_1d_H__
3 
11 /*
12  Copyright (C) 2004- 2009, Hammersmith Imanet Ltd
13  Copyright (C) 2024, University College London
14  This file is part of STIR.
15 
16  SPDX-License-Identifier: Apache-2.0
17 
18  See STIR/LICENSE.txt for details
19 */
20 #include "stir/common.h"
21 #include <stdio.h>
22 #include <iostream>
23 
24 START_NAMESPACE_STIR
25 class Succeeded;
26 class ByteOrder;
27 template <int num_dimensions, class elemT>
28 class Array;
29 
30 namespace detail
31 {
39 template <int num_dimensions, class elemT>
40 inline Succeeded
41 write_data_1d(std::ostream& s, const Array<num_dimensions, elemT>& data, const ByteOrder byte_order, const bool can_corrupt_data);
49 template <int num_dimensions, class elemT>
50 inline Succeeded
51 write_data_1d(FILE*& fptr_ref, const Array<num_dimensions, elemT>& data, const ByteOrder byte_order, const bool can_corrupt_data);
52 } // namespace detail
53 
54 END_NAMESPACE_STIR
55 
57 
58 #endif
Succeeded write_data_1d(FILE *&fptr_ref, const Array< num_dimensions, elemT > &data, const ByteOrder byte_order, const bool can_corrupt_data)
This is an internal function called by write_data(). It does the actual writing to FILE* using stdio ...
Definition: write_data_1d.inl:98
basic configuration include file
Implementation of stir::write_data_1d() functions.