STIR  6.2.0
ECAT6OutputFileFormat.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_ECAT6OutputFileFormat_H__
22 #define __stir_IO_ECAT6OutputFileFormat_H__
23 
26 // include for namespace macros
28 #include <string>
29 #include "stir/deprecated.h"
30 
31 START_NAMESPACE_STIR
32 template <int num_dimensions, typename elemT>
33 class DiscretisedDensity;
34 
35 START_NAMESPACE_ECAT
36 START_NAMESPACE_ECAT6
37 
48 class STIR_DEPRECATED ECAT6OutputFileFormat : public RegisteredParsingObject<ECAT6OutputFileFormat,
49  OutputFileFormat<DiscretisedDensity<3, float>>,
50  OutputFileFormat<DiscretisedDensity<3, float>>>
51 {
52 private:
55  OutputFileFormat<DiscretisedDensity<3, float>>>
56  base_type;
57 
58 public:
60  static const char* const registered_name;
61 
62  ECAT6OutputFileFormat(const NumericType& = NumericType::SHORT, const ByteOrder& = ByteOrder::native);
63 
65 
66  virtual NumericType set_type_of_numbers(const NumericType&, const bool warn = false);
68 
69  virtual ByteOrder set_byte_order(const ByteOrder&, const bool warn = false);
70 
71 public:
72  std::string default_scanner_name;
73 
74 protected:
75  virtual Succeeded actual_write_to_file(std::string& output_filename, const DiscretisedDensity<3, float>& density) const;
76  virtual void set_defaults();
77  virtual void initialise_keymap();
78  virtual bool post_processing();
79 };
80 
81 END_NAMESPACE_ECAT6
82 END_NAMESPACE_ECAT
83 END_NAMESPACE_STIR
84 
85 #endif
#define STIR_DEPRECATED
Deprecation macro.
Definition: deprecated.h:19
static const char *const registered_name
Name which will be used when parsing an OutputFileFormat object.
Definition: ECAT6OutputFileFormat.h:60
This file declares a deprecation macro.
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.
Implementation of OutputFileFormat paradigm for the ECAT6 format.
Definition: ECAT6OutputFileFormat.h:48
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.
Base class for classes that create output files.
Definition: OutputFileFormat.h:55
Declaration of routines which convert ECAT things into our building blocks and vice versa...