The SWORD Project  1.9.0.svnversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
swcacher.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * swcacher.h - class SWCacher: used to provide an
4  * interface for objects that cache and want a standard
5  * interface for cleaning up.
6  *
7  * $Id: swcacher.h 3786 2020-08-30 11:35:14Z scribe $
8  *
9  * Copyright 2002-2013 CrossWire Bible Society (http://www.crosswire.org)
10  * CrossWire Bible Society
11  * P. O. Box 2528
12  * Tempe, AZ 85280-2528
13  *
14  * This program is free software; you can redistribute it and/or modify it
15  * under the terms of the GNU General Public License as published by the
16  * Free Software Foundation version 2.
17  *
18  * This program is distributed in the hope that it will be useful, but
19  * WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21  * General Public License for more details.
22  *
23  */
24 
25 #ifndef SWCACHER_H
26 #define SWCACHER_H
27 
28 #include <defs.h>
29 
31 
36 public:
37  SWCacher();
38  virtual ~SWCacher();
39  virtual void flush();
40  virtual long resourceConsumption();
41  virtual long lastAccess();
42 };
43 
45 #endif
#define SWORD_NAMESPACE_START
Definition: defs.h:39
#define SWDLLEXPORT
Definition: defs.h:171
#define SWORD_NAMESPACE_END
Definition: defs.h:40