The Gaudi Framework  master (181af51f)
Loading...
Searching...
No Matches
IValidity.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
11#pragma once
12
13#include <GaudiKernel/Kernel.h>
14namespace Gaudi {
15 class Time;
16}
17
21public:
23 virtual bool isValid() const = 0;
24
26 virtual bool isValid( const Gaudi::Time& ) const = 0;
27
29 virtual const Gaudi::Time& validSince() const = 0;
30
32 virtual const Gaudi::Time& validTill() const = 0;
33
35 virtual void setValidity( const Gaudi::Time&, const Gaudi::Time& ) = 0;
36
38 virtual void setValiditySince( const Gaudi::Time& ) = 0;
39
41 virtual void setValidityTill( const Gaudi::Time& ) = 0;
42
44 virtual ~IValidity() = default;
45};
#define GAUDI_API
Definition Kernel.h:49
Based on seal::Time.
Definition Time.h:235
Interface for objects with a validity.
Definition IValidity.h:20
virtual const Gaudi::Time & validSince() const =0
Returns the start of validity of the object.
virtual const Gaudi::Time & validTill() const =0
Returns the end of validity of the object.
virtual void setValidityTill(const Gaudi::Time &)=0
Sets the end of validity of the object.
virtual bool isValid() const =0
Check if the object is valid (it can be always invalid).
virtual void setValiditySince(const Gaudi::Time &)=0
Sets the start of validity of the object.
virtual ~IValidity()=default
destructor
virtual void setValidity(const Gaudi::Time &, const Gaudi::Time &)=0
Set the interval of validity of the object.
virtual bool isValid(const Gaudi::Time &) const =0
Check if the object is valid for the specified point in time.
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition __init__.py:1