STIR  6.2.0
InterfileParametricDiscretisedDensityOutputFileFormat.h
Go to the documentation of this file.
1 //
2 //
3 /*
4  Copyright (C) 2002-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_InterfileParametricDiscretisedDensityOutputFileFormat_H__
22 #define __stir_IO_InterfileParametricDiscretisedDensityOutputFileFormat_H__
23 
26 
27 START_NAMESPACE_STIR
28 
29 // template <int num_dimensions, typename elemT> class ParametricDiscretisedDensity;
30 template <typename DiscDensityT>
31 class ParametricDiscretisedDensity;
32 
38 #if 0
39 template <int num_dimensions, typename elemT>
40 class InterfileParametricDiscretisedDensityOutputFileFormat :
41  public RegisteredParsingObject<
42  InterfileParametricDiscretisedDensityOutputFileFormat<num_dimensions, elemT>,
43  OutputFileFormat<ParametricDiscretisedDensity<num_dimensions, elemT> >,
44  OutputFileFormat<ParametricDiscretisedDensity<num_dimensions, elemT> > >
45 #else
46 template <typename DiscDensityT>
48  : public RegisteredParsingObject<InterfileParametricDiscretisedDensityOutputFileFormat<DiscDensityT>,
49  OutputFileFormat<ParametricDiscretisedDensity<DiscDensityT>>,
50  OutputFileFormat<ParametricDiscretisedDensity<DiscDensityT>>>
51 #endif
52 {
53 private:
54  typedef
55 #if 0
59  OutputFileFormat<ParametricDiscretisedDensity<num_dimensions, elemT> > >
60 #else
63  OutputFileFormat<ParametricDiscretisedDensity<DiscDensityT>>>
64 #endif
65  base_type;
66 public:
68  static const char* const registered_name;
69 
71  const ByteOrder& = ByteOrder::native);
72 
73  ByteOrder set_byte_order(const ByteOrder&, const bool warn = false) override;
74 
75 protected:
76  Succeeded actual_write_to_file(std::string & output_filename, const ParametricDiscretisedDensity<DiscDensityT>& density)
77  const override;
78 
79  void set_defaults() override;
80  void initialise_keymap() override;
81  bool post_processing() override;
82 };
83 
84 END_NAMESPACE_STIR
85 
86 #endif
Class to store parametric images.
Definition: ECAT7ParametricDensityOutputFileFormat.h:36
This class provides member functions to find out what byte-order your machine is and to swap numbers...
Definition: ByteOrder.h:99
Implementation of OutputFileFormat paradigm for the Interfile format.
Definition: InterfileParametricDiscretisedDensityOutputFileFormat.h:47
Declaration of class stir::OutputFileFormat.
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
static const char *const registered_name
Name which will be used when parsing an OutputFileFormat object.
Definition: InterfileParametricDiscretisedDensityOutputFileFormat.h:68
Declaration of class stir::RegisteredParsingObject.
Base class for classes that create output files.
Definition: OutputFileFormat.h:55