STIR  6.2.0
InterfileDynamicDiscretisedDensityOutputFileFormat.h
Go to the documentation of this file.
1 //
2 //
3 /*
4  Copyright (C) 2006-2007, Hammersmith Imanet Ltd
5  This file is part of STIR.
6 
7  SPDX-License-Identifier: Apache-2.0
8 
9  See STIR/LICENSE.txt for details
10 */
21 #ifndef __stir_IO_InterfileDynamicDiscretisedDensityOutputFileFormat_H__
22 #define __stir_IO_InterfileDynamicDiscretisedDensityOutputFileFormat_H__
23 
26 
27 START_NAMESPACE_STIR
28 
29 class DynamicDiscretisedDensity;
30 
38  : public RegisteredParsingObject<InterfileDynamicDiscretisedDensityOutputFileFormat,
39  OutputFileFormat<DynamicDiscretisedDensity>,
40  OutputFileFormat<DynamicDiscretisedDensity>>
41 {
42 private:
45  OutputFileFormat<DynamicDiscretisedDensity>>
46  base_type;
47 
48 public:
50  static const char* const registered_name;
51 
52  InterfileDynamicDiscretisedDensityOutputFileFormat(const NumericType& = NumericType::FLOAT,
53  const ByteOrder& = ByteOrder::native);
54 
55  ByteOrder set_byte_order(const ByteOrder&, const bool warn = false) override;
56 
57 protected:
58  Succeeded actual_write_to_file(std::string& output_filename, const DynamicDiscretisedDensity& density) const override;
59 
60  void set_defaults() override;
61  void initialise_keymap() override;
62  bool post_processing() override;
63 };
64 
65 END_NAMESPACE_STIR
66 
67 #endif
This class provides member functions to find out what byte-order your machine is and to swap numbers...
Definition: ByteOrder.h:99
Declaration of class stir::OutputFileFormat.
Class of multiple image frames, one for each time frame Each time frame is a DiscretisedDensity<3,float>
Definition: DynamicDiscretisedDensity.h:45
static const char *const registered_name
Name which will be used when parsing an OutputFileFormat object.
Definition: InterfileDynamicDiscretisedDensityOutputFileFormat.h:50
Implementation of OutputFileFormat paradigm for the Interfile format.
Definition: InterfileDynamicDiscretisedDensityOutputFileFormat.h:37
Parent class for all leaves in a RegisteredObject hierarchy that do parsing of parameter files...
Definition: RegisteredParsingObject.h:77
provides names for some numeric types and methods for finding their properties.
Definition: NumericType.h:54
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition: Succeeded.h:43
Declaration of class stir::RegisteredParsingObject.