#ifndef _det_ValidityStamp_h_ #define _det_ValidityStamp_h_ /** \file object to keep track of data validity interval \author Tom Paul \version $Id$ \date 08 Jun 2006 */ static const char CVSId_det_ValidityStamp[] = "$Id$"; #include namespace det { /** \class ValidityStamp \brief Object to keep track of whether data are valid, or have expired \author T. Paul \author D. Veberic \date Jun 2006 \date Mar 2007 DV: inherit from TimeRange \version $Id$ */ class ValidityStamp : public utl::TimeRange { public: ValidityStamp() { } ValidityStamp(const utl::TimeStamp& start, const utl::TimeStamp& stop) : TimeRange(start, stop) { } /// True if detector time is between start and end validity times bool IsValid() const; /// Set the start and end validity times void SetValidityInterval(const utl::TimeStamp& start, const utl::TimeStamp& stop) { SetTimeRange(start, stop); } }; } #endif // Configure (x)emacs for this file ... // Local Variables: // mode: c++ // compile-command: "make -C .. -k" // End: