#ifndef _TATOFtimestamp_H #define _TATOFtimestamp_H /*! \file \version $Id: TAGtimestamp.hxx,v 1.1 2001/12/09 14:25:29 mueller Exp $ \brief Declaration of TATOFtimestamp. */ /*------------------------------------------+---------------------------------*/ #include "Rtypes.h" class TATOFtimestamp { public: TATOFtimestamp(); explicit TATOFtimestamp(Int_t i_time); virtual ~TATOFtimestamp(); void FromDouble(Double_t d_time); void FromUnixTime(Int_t i_time); void SetCurrent(); Double_t ToDouble() const; Int_t ToUnixTime() const; Double_t Age() const; Bool_t Valid() const; void Clear(); TATOFtimestamp& operator+(Double_t d_deltatime); TATOFtimestamp& operator-(Double_t d_deltatime); friend Double_t operator-(const TATOFtimestamp& lhs, const TATOFtimestamp& rhs); ClassDef(TATOFtimestamp,1) private: // NOTE: CUSTOM STREAMER Int_t fiSec; //! Int_t fiUSec; //! }; #include "TATOFtimestamp.icc" #endif