STIR 6.4.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__
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/ArrayFwd.h"
21#include <stdio.h>
22#include <iostream>
23
24START_NAMESPACE_STIR
25class Succeeded;
26class ByteOrder;
27
28namespace detail
29{
37template <int num_dimensions, class elemT>
38inline Succeeded
39write_data_1d(std::ostream& s, const Array<num_dimensions, elemT>& data, const ByteOrder byte_order, const bool can_corrupt_data);
47template <int num_dimensions, class elemT>
48inline Succeeded write_data_1d(FILE*& fptr_ref,
50 const ByteOrder byte_order,
51 const bool can_corrupt_data);
52} // namespace detail
53
54END_NAMESPACE_STIR
55
57
58#endif
forward declaration of stir::Array class for multi-dimensional (numeric) arrays
This class provides member functions to find out what byte-order your machine is and to swap numbers.
Definition ByteOrder.h:100
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition Succeeded.h:44
Succeeded write_data_1d(std::ostream &s, 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 std::ostream.
Definition write_data_1d.inl:33
Array< num_dimensions, elemT > ArrayType
type alias for future-proofing for "large" rectangular arrays
Definition ArrayFwd.h:25
Implementation of stir::write_data_1d() functions.