StoreFileSystem.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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 char const * type() const =0
virtual SwapDir * createSwapDir()=0
static void FreeAllFs()
static void RegisterAllFsWithCacheManager(void)
std::vector< StoreFileSystem * >::iterator iterator
static std::vector< StoreFileSystem * > const & FileSystems()
std::vector< StoreFileSystem * >::const_iterator const_iterator
static void SetupAllFs()
virtual void registerWithCacheManager(void)
virtual ~StoreFileSystem()
static std::vector< StoreFileSystem * > * _FileSystems
static std::vector< StoreFileSystem * > & GetFileSystems()
static void FsAdd(StoreFileSystem &)
StoreFileSystem & operator=(StoreFileSystem const &)
virtual void setup()=0
StoreFileSystem storefs_entry_t
#define false
Definition: GnuRegex.c:233
virtual void done()=0
manages a single cache_dir
Definition: Disk.h:21

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors