STIR  6.2.0
AbsTimeIntervalFromDynamicData.h
Go to the documentation of this file.
1 //
2 //
3 /*
4  Copyright (C) 2010- 2010 , Hammersmith Imanet Ltd
5  SPDX-License-Identifier: Apache-2.0
6  See STIR/LICENSE.txt for details
7 */
8 #ifndef __stir_AbsTimeIntervalFromDynamicData__H__
9 #define __stir_AbsTimeIntervalFromDynamicData__H__
10 
22 #include <string>
23 
24 START_NAMESPACE_STIR
25 class Succeeded;
26 
47  : public RegisteredParsingObject<AbsTimeIntervalFromDynamicData, AbsTimeInterval, AbsTimeInterval>
48 {
49 
50 public:
52  static const char* const registered_name;
53 
54  ~AbsTimeIntervalFromDynamicData() override {}
58 
59  AbsTimeIntervalFromDynamicData(const std::string& filename,
60  const unsigned int start_time_frame_num,
61  const unsigned int end_time_frame_num);
62 
63 private:
64  std::string _filename;
65  // TimeFrameDefinitions _time_frame_defs;
66  double _scan_start_time_in_secs_since_1970; // start of scan, not the time-interval
67  unsigned int _start_time_frame_num;
68  unsigned int _end_time_frame_num;
69 
70  void set_defaults() override;
71  void initialise_keymap() override;
72  bool post_processing() override;
73 
74  Succeeded set_times();
75 };
76 
77 END_NAMESPACE_STIR
78 #endif
Declaration of class stir::AbsTimeInterval.
static const char *const registered_name
Name which will be used when parsing a AbsTimeInterval object.
Definition: AbsTimeIntervalFromDynamicData.h:52
Declaration of class stir::TimeFrameDefinitions.
class for specifying a time interval via a dynamic scan
Definition: AbsTimeIntervalFromDynamicData.h:46
Parent class for all leaves in a RegisteredObject hierarchy that do parsing of parameter files...
Definition: RegisteredParsingObject.h:77
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.