STIR 6.4.0
MultiDynamicDiscretisedDensityOutputFileFormat.h
Go to the documentation of this file.
1//
2//
3/*
4 Copyright (C) 2006-2007, Hammersmith Imanet Ltd
5 Copyright (C) 2018 - , 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
23#ifndef __stir_IO_MultiDynamicDiscretisedDensityOutputFileFormat_H__
24#define __stir_IO_MultiDynamicDiscretisedDensityOutputFileFormat_H__
25
29
30START_NAMESPACE_STIR
31
32class DynamicDiscretisedDensity;
33
39
40class MultiDynamicDiscretisedDensityOutputFileFormat
41 : public RegisteredParsingObject<MultiDynamicDiscretisedDensityOutputFileFormat,
42 OutputFileFormat<DynamicDiscretisedDensity>,
43 OutputFileFormat<DynamicDiscretisedDensity>>
44{
45private:
46 typedef RegisteredParsingObject<MultiDynamicDiscretisedDensityOutputFileFormat,
49 base_type;
50
51public:
53 static const char* const registered_name;
54
55 MultiDynamicDiscretisedDensityOutputFileFormat(const NumericType& = NumericType::FLOAT, const ByteOrder& = ByteOrder::native);
56
57 ByteOrder set_byte_order(const ByteOrder&, const bool warn = false) override;
58
59protected:
60 Succeeded actual_write_to_file(std::string& output_filename, const DynamicDiscretisedDensity& density) const override;
61
62 void set_defaults() override;
63 void initialise_keymap() override;
64 bool post_processing() override;
65
67 shared_ptr<OutputFileFormat<DiscretisedDensity<3, float>>> individual_output_type_sptr;
68};
69
70END_NAMESPACE_STIR
71
72#endif
defines the stir::DiscretisedDensity class
Declaration of class stir::OutputFileFormat.
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
Class of multiple image frames, one for each time frame Each time frame is a DiscretisedDensity<3,...
Definition DynamicDiscretisedDensity.h:46
void initialise_keymap() override
Initialise all keywords.
Definition MultiDynamicDiscretisedDensityOutputFileFormat.cxx:54
ByteOrder set_byte_order(const ByteOrder &, const bool warn=false) override
set byte order used for output
Definition MultiDynamicDiscretisedDensityOutputFileFormat.cxx:71
void set_defaults() override
Set defaults before parsing.
Definition MultiDynamicDiscretisedDensityOutputFileFormat.cxx:45
bool post_processing() override
This will be called at the end of the parsing.
Definition MultiDynamicDiscretisedDensityOutputFileFormat.cxx:63
Succeeded actual_write_to_file(std::string &output_filename, const DynamicDiscretisedDensity &density) const override
virtual function called by write_to_file()
Definition MultiDynamicDiscretisedDensityOutputFileFormat.cxx:85
static const char *const registered_name
Name which will be used when parsing an OutputFileFormat object.
Definition MultiDynamicDiscretisedDensityOutputFileFormat.h:53
shared_ptr< OutputFileFormat< DiscretisedDensity< 3, float > > > individual_output_type_sptr
Output type for the individual images.
Definition MultiDynamicDiscretisedDensityOutputFileFormat.h:67
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
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