CachePolicy.h
Go to the documentation of this file.
1 #ifndef _NOVADAQ_CACHEPOLICY_H
2 #define _NOVADAQ_CACHEPOLICY_H
3 
4 namespace novadaq {
5 
6 /**
7  * The base class for cache expiration policies. For convenience,
8  * this class provides an implementation of a "never expire" policy,
9  * so instances of this class can be used in cases in which no
10  * automatic expiration is desired.
11  *
12  * @author Kurt Biery
13  * @version $Revision: 1.1.34.1 $ $Date: 2019/09/27 00:07:20 $
14  */
15 
16 class CachePolicy {
17 
18  public:
19 
20  explicit CachePolicy() {};
21 
22  virtual ~CachePolicy() {};
23 
24  void cacheUpdated();
25 
26  bool isExpired();
27 
28  protected:
29 
30  virtual void _markAsUpdated();
31 
32  virtual bool _checkIfExpired();
33 
34 };
35 
36 } // end of namespace novadaq
37 
38 #endif
virtual ~CachePolicy()
Definition: CachePolicy.h:22
virtual bool _checkIfExpired()
Definition: CachePolicy.cpp:38
virtual void _markAsUpdated()
Definition: CachePolicy.cpp:27