Squid Web Cache
master
Loading...
Searching...
No Matches
StoreFSufs.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 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_SRC_FS_UFS_STOREFSUFS_H
10
#define SQUID_SRC_FS_UFS_STOREFSUFS_H
11
17
#include "
StoreFileSystem.h
"
18
19
class
DiskIOModule
;
20
21
namespace
Fs
22
{
23
namespace
Ufs
24
{
33
template
<
class
TheSwapDir>
34
class
StoreFSufs
:
public
StoreFileSystem
35
{
36
public
:
37
static
StoreFileSystem
&
GetInstance
();
38
StoreFSufs
(
char
const
*DefaultModuleType,
char
const
*
label
);
39
~StoreFSufs
()
override
{}
40
41
/* StoreFileSystem API */
42
const
char
*
type
()
const override
;
43
SwapDir
*
createSwapDir
()
override
;
44
45
protected
:
46
DiskIOModule
*
IO
;
47
char
const
*
moduleName
;
48
char
const
*
label
;
49
};
50
51
template
<
class
C>
52
StoreFSufs<C>::StoreFSufs
(
char
const
*defaultModuleName,
char
const
*aLabel) : IO(nullptr), moduleName(defaultModuleName), label(aLabel)
53
{
54
FsAdd
(*
this
);
55
}
56
57
template
<
class
C>
58
char
const
*
59
StoreFSufs<C>::type
()
const
60
{
61
return
label;
62
}
63
64
template
<
class
C>
65
SwapDir
*
66
StoreFSufs<C>::createSwapDir
()
67
{
68
C *result =
new
C(type(), moduleName);
69
return
result;
70
}
71
72
}
/* namespace Ufs */
73
}
/* namespace Fs */
74
75
#endif
/* SQUID_SRC_FS_UFS_STOREFSUFS_H */
76
StoreFileSystem.h
DiskIOModule
Definition
DiskIOModule.h:21
Fs::Ufs::StoreFSufs
Definition
StoreFSufs.h:35
Fs::Ufs::StoreFSufs::moduleName
char const * moduleName
Definition
StoreFSufs.h:47
Fs::Ufs::StoreFSufs::createSwapDir
SwapDir * createSwapDir() override
Definition
StoreFSufs.h:66
Fs::Ufs::StoreFSufs::~StoreFSufs
~StoreFSufs() override
Definition
StoreFSufs.h:39
Fs::Ufs::StoreFSufs::type
const char * type() const override
Definition
StoreFSufs.h:59
Fs::Ufs::StoreFSufs::StoreFSufs
StoreFSufs(char const *DefaultModuleType, char const *label)
Definition
StoreFSufs.h:52
Fs::Ufs::StoreFSufs::label
char const * label
Definition
StoreFSufs.h:48
Fs::Ufs::StoreFSufs::GetInstance
static StoreFileSystem & GetInstance()
Fs::Ufs::StoreFSufs::IO
DiskIOModule * IO
Definition
StoreFSufs.h:46
StoreFileSystem
Definition
StoreFileSystem.h:91
StoreFileSystem::FsAdd
static void FsAdd(StoreFileSystem &)
Definition
StoreFileSystem.cc:17
Store::Disk
manages a single cache_dir
Definition
Disk.h:22
Fs
Definition
Module.h:13
squid
src
fs
ufs
StoreFSufs.h
Generated by
1.9.8