Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

TstampFilter.h 753 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
#ifndef TSTAMPFILTER_H_INCLUDED
#define TSTAMPFILTER_H_INCLUDED

#include <memory.h>
#include <string>

typedef unsigned long long ULong64_t;
typedef unsigned int       UInt_t;
typedef bool               Bool_t;

class TstampFilter
{
public:
  Bool_t      fFromFile;
  std::string fTstampFile;
  FILE       *fTstampFILE;
  ULong64_t   fTolerance;
  ULong64_t   fTimestamp;
  UInt_t      fCount;

  TstampFilter();
  TstampFilter(std::string tstampFile, int tolerance);
  virtual ~TstampFilter();
  void Reset();
  bool Initialize(std::string tstampFile, int tolerance);
  bool IsReady() {return fFromFile;}
  bool CheckTstamp(ULong64_t timestamp);
  void TstampFilter::NextTstamp();
};


#endif //TSTAMPFILTER_H_INCLUDED