STIR  6.2.0
SPECTListRecord.h
Go to the documentation of this file.
1 //
13 /*
14  Copyright (C) 2019, National Physical Laboratory
15  Copyright (C) 2019, University College of London
16  This file is part of STIR.
17 
18  SPDX-License-Identifier: Apache-2.0
19 
20  See STIR/LICENSE.txt for details
21 */
22 
23 #ifndef __stir_listmode_SPECTListRecord_H__
24 #define __stir_listmode_SPECTListRecord_H__
25 
26 #include "stir/listmode/ListTime.h"
27 #include "ListRecord.h"
29 
30 #include "stir/round.h"
31 #include "stir/Succeeded.h"
32 
33 START_NAMESPACE_STIR
34 
36 
45 {
46 public:
47  // virtual ~SPECTListRecord() {}
48 
49  virtual bool is_time() const = 0;
50 
51  virtual bool is_event() const = 0;
52 
53  virtual SPECTListEvent& event() = 0;
54  virtual const SPECTListEvent& event() const = 0;
55  virtual ListTime& time() = 0;
56  virtual const ListTime& time() const = 0;
57 
58  virtual bool operator==(const SPECTListRecord& e2) const = 0;
59  bool operator!=(const SPECTListRecord& e2) const { return !(*this == e2); }
60 };
61 
62 END_NAMESPACE_STIR
63 
64 #endif
Declarations of class stir::ListTime which is used for list mode data.
Class for storing and using gamma events from a SPECT List mode file.
Definition: SPECTListEvent.h:47
Declaration of class stir::Succeeded.
A class for a general element of a list mode file.
Definition: SPECTListRecord.h:44
A class for a general element of a list mode file.
Definition: ListRecord.h:44
Declaration of the stir::round functions.
Declarations of classes stir::ListRecord which is used for list mode data.
A class for storing and using a timing record from a listmode file.
Definition: ListTime.h:46
Declarations of classe stir::SPECTListEvent which is used for list mode data.