STIR 6.4.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*/
21
22#ifndef __stir_IO_MultiParametricDiscretisedDensityOutputFileFormat_H__
23#define __stir_IO_MultiParametricDiscretisedDensityOutputFileFormat_H__
24
28
29START_NAMESPACE_STIR
30
36template <typename DiscDensityT>
37class MultiParametricDiscretisedDensityOutputFileFormat
38 : public RegisteredParsingObject<MultiParametricDiscretisedDensityOutputFileFormat<DiscDensityT>,
39 OutputFileFormat<ParametricDiscretisedDensity<DiscDensityT>>,
40 OutputFileFormat<ParametricDiscretisedDensity<DiscDensityT>>>
41{
42private:
46 base_type;
47
48public:
50 static const char* const registered_name;
51
52 MultiParametricDiscretisedDensityOutputFileFormat(const NumericType& = NumericType::FLOAT,
54
55 ByteOrder set_byte_order(const ByteOrder&, const bool warn = false) override;
56
57protected:
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
71END_NAMESPACE_STIR
72
73#endif
Declaration of class stir::OutputFileFormat.
Declaration of class stir::ParametricDiscretisedDensity.
Declaration of class stir::RegisteredParsingObject.
This class provides member functions to find out what byte-order your machine is and to swap numbers.
Definition ByteOrder.h:100
@ native
Definition ByteOrder.h:107
typename ParametricDiscretisedDensity< DiscDensityT >::SingleDiscretisedDensityType::hierarchy_base_type DiscretisedDensityType
Output type for the individual images.
Definition MultiParametricDiscretisedDensityOutputFileFormat.h:66
void initialise_keymap() override
Initialise all keywords.
ByteOrder set_byte_order(const ByteOrder &, const bool warn=false) override
set byte order used for output
bool post_processing() override
This will be called at the end of the parsing.
static const char *const registered_name
Name which will be used when parsing an OutputFileFormat object.
Definition MultiParametricDiscretisedDensityOutputFileFormat.h:50
void set_defaults() override
Set defaults before parsing.
provides names for some numeric types and methods for finding their properties.
Definition NumericType.h:55
Base class for classes that create output files.
Definition OutputFileFormat.h:56
Class to store parametric images.
Definition ParametricDiscretisedDensity.h:65
Parent class for all leaves in a RegisteredObject hierarchy that do parsing of parameter files.
Definition RegisteredParsingObject.h:78
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition Succeeded.h:44