StoreFileSystem.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef SQUID_STOREFILESYSTEM_H
10 #define SQUID_STOREFILESYSTEM_H
11 
12 #include "store/forward.h"
13 #include <vector>
14 
15 /* ****** DOCUMENTATION ***** */
16 
90 {
91 
92 public:
93  static void SetupAllFs();
94  static void FsAdd(StoreFileSystem &);
95  static void FreeAllFs();
96  static std::vector<StoreFileSystem*> const &FileSystems();
97  typedef std::vector<StoreFileSystem*>::iterator iterator;
98  typedef std::vector<StoreFileSystem*>::const_iterator const_iterator;
100 
101  virtual ~StoreFileSystem() {}
102 
103  virtual char const *type () const = 0;
104  virtual SwapDir *createSwapDir() = 0;
105  virtual void done() = 0;
106  virtual void setup() = 0;
107  // Not implemented
110 
111 protected:
113  virtual void registerWithCacheManager(void);
114 
115 private:
116  static std::vector<StoreFileSystem*> &GetFileSystems();
117  static std::vector<StoreFileSystem*> *_FileSystems;
118  static void RegisterAllFsWithCacheManager(void);
119 };
120 
121 // TODO: Kill this typedef!
123 
124 #endif /* SQUID_STOREFILESYSTEM_H */
125 
virtual ~StoreFileSystem()
static std::vector< StoreFileSystem * > * _FileSystems
manages a single cache_dir
Definition: Disk.h:21
static void RegisterAllFsWithCacheManager(void)
static void FsAdd(StoreFileSystem &)
virtual void setup()=0
static void FreeAllFs()
std::vector< StoreFileSystem * >::const_iterator const_iterator
StoreFileSystem storefs_entry_t
virtual void done()=0
static std::vector< StoreFileSystem * > & GetFileSystems()
std::vector< StoreFileSystem * >::iterator iterator
virtual const char * type() const =0
StoreFileSystem & operator=(StoreFileSystem const &)
virtual SwapDir * createSwapDir()=0
static const std::vector< StoreFileSystem * > & FileSystems()
static void SetupAllFs()
#define false
Definition: GnuRegex.c:233
virtual void registerWithCacheManager(void)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors