T2Life.h
Go to the documentation of this file.
1 #ifndef _sdet_T2Life_h_
2 #define _sdet_T2Life_h_
3 
4 #include <map>
5 #include <vector>
6 #include <fstream>
7 
8 
9 namespace sdet {
10 
21  class T2Life {
22 
23  public:
24  const std::vector<unsigned int>& GetValidStations(const unsigned int theGPSSecond);
25 
27  static T2Life& GetT2Life();
28 
29  private:
30  T2Life();
31  ~T2Life();
32 
33  void SetFile(unsigned int theGPSSecond);
34 
35  static T2Life* gfT2Life;
36 
37  unsigned int fCurrentStart = 0;
38  unsigned int fCurrentStop = 0;
39  unsigned int fCurrentFileStart = 0;
40  unsigned int fCurrentFileEnd = 0;
41 
42  std::ifstream* fFile = nullptr;
43  std::vector<unsigned int> fValidStations;
44 
45  std::map<unsigned int, std::pair<unsigned int, std::ifstream*>> fFiles;
46 
47  };
48 
49 
50  const std::vector<unsigned int>& GetStationsStatusFromT2Files(unsigned int theGPSSecond);
51 
52 }
53 
54 
55 #endif
std::map< unsigned int, std::pair< unsigned int, std::ifstream * > > fFiles
Definition: T2Life.h:45
static T2Life * gfT2Life
Definition: T2Life.h:35
unsigned int fCurrentFileStart
Definition: T2Life.h:39
static T2Life & GetT2Life()
Get singleton.
Definition: T2Life.cc:38
std::vector< unsigned int > fValidStations
Definition: T2Life.h:43
std::ifstream * fFile
Definition: T2Life.h:42
unsigned int fCurrentFileEnd
Definition: T2Life.h:40
const std::vector< unsigned int > & GetValidStations(const unsigned int theGPSSecond)
Definition: T2Life.cc:48
unsigned int fCurrentStop
Definition: T2Life.h:38
void SetFile(unsigned int theGPSSecond)
Definition: T2Life.cc:105
const std::vector< unsigned int > & GetStationsStatusFromT2Files(unsigned int theGPSSecond)
Definition: T2Life.cc:124
unsigned int fCurrentStart
Definition: T2Life.h:37

, generated on Tue Sep 26 2023.