STIR  6.2.0
MultiParametricDiscretisedDensityOutputFileFormat.h
Go to the documentation of this file.
1 //
2 //
3 /*
4  Copyright (C) 2002-2007, Hammersmith Imanet Ltd
5  Copyright (C) 2020 University College London
6  This file is part of STIR.
7 
8  SPDX-License-Identifier: Apache-2.0
9 
10  See STIR/LICENSE.txt for details
11 */
22 #ifndef __stir_IO_MultiParametricDiscretisedDensityOutputFileFormat_H__
23 #define __stir_IO_MultiParametricDiscretisedDensityOutputFileFormat_H__
24 
28 
29 START_NAMESPACE_STIR
30 
36 template <typename DiscDensityT>
38  : public RegisteredParsingObject<MultiParametricDiscretisedDensityOutputFileFormat<DiscDensityT>,
39  OutputFileFormat<ParametricDiscretisedDensity<DiscDensityT>>,
40  OutputFileFormat<ParametricDiscretisedDensity<DiscDensityT>>>
41 {
42 private:
45  OutputFileFormat<ParametricDiscretisedDensity<DiscDensityT>>>
46  base_type;
47 
48 public:
50  static const char* const registered_name;
51 
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,
59  const ParametricDiscretisedDensity<DiscDensityT>& density) const override;
60 
61  void set_defaults() override;
62  void initialise_keymap() override;
63  bool post_processing() override;
64 
68  shared_ptr<OutputFileFormat<DiscretisedDensityType>> individual_output_type_sptr;
69 };
70 
71 END_NAMESPACE_STIR
72 
73 #endif
typename ParametricDiscretisedDensity< DiscDensityT >::SingleDiscretisedDensityType::hierarchy_base_type DiscretisedDensityType
Output type for the individual images.
Definition: MultiParametricDiscretisedDensityOutputFileFormat.h:67
Class to store parametric images.
Definition: ECAT7ParametricDensityOutputFileFormat.h:36
static const char *const registered_name
Name which will be used when parsing an OutputFileFormat object.
Definition: MultiParametricDiscretisedDensityOutputFileFormat.h:50
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.
Declaration of class stir::ParametricDiscretisedDensity.
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
Implementation of OutputFileFormat paradigm for the Multi format.
Definition: MultiParametricDiscretisedDensityOutputFileFormat.h:37
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.
Base class for classes that create output files.
Definition: OutputFileFormat.h:55