Squid Web Cache
v8/master
Loading...
Searching...
No Matches
UFSSwapLogParser.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_UFSSWAPLOGPARSER_H
10
#define SQUID_SRC_FS_UFS_UFSSWAPLOGPARSER_H
11
12
class
StoreSwapLogData
;
13
14
namespace
Fs
15
{
16
namespace
Ufs
17
{
19
class
UFSSwapLogParser
20
{
21
public
:
22
FILE *
log
;
23
int
log_entries
;
24
int
record_size
;
25
26
UFSSwapLogParser
(FILE *fp):
log
(fp),
log_entries
(-1),
record_size
(0) {
27
}
28
virtual
~UFSSwapLogParser
() {};
29
30
static
UFSSwapLogParser
*
GetUFSSwapLogParser
(FILE *fp);
31
32
virtual
bool
ReadRecord
(
StoreSwapLogData
&swapData) = 0;
33
int
SwapLogEntries
();
34
void
Close
() {
35
if
(
log
) {
36
fclose(
log
);
37
log
=
nullptr
;
38
}
39
}
40
};
41
42
}
//namespace Ufs
43
}
//namespace Fs
44
#endif
/* SQUID_SRC_FS_UFS_UFSSWAPLOGPARSER_H */
45
Fs::Ufs::UFSSwapLogParser
Definition
UFSSwapLogParser.h:20
Fs::Ufs::UFSSwapLogParser::GetUFSSwapLogParser
static UFSSwapLogParser * GetUFSSwapLogParser(FILE *fp)
Definition
UFSSwapLogParser.cc:81
Fs::Ufs::UFSSwapLogParser::SwapLogEntries
int SwapLogEntries()
Definition
UFSSwapLogParser.cc:129
Fs::Ufs::UFSSwapLogParser::UFSSwapLogParser
UFSSwapLogParser(FILE *fp)
Definition
UFSSwapLogParser.h:26
Fs::Ufs::UFSSwapLogParser::record_size
int record_size
Definition
UFSSwapLogParser.h:24
Fs::Ufs::UFSSwapLogParser::log
FILE * log
Definition
UFSSwapLogParser.h:22
Fs::Ufs::UFSSwapLogParser::log_entries
int log_entries
Definition
UFSSwapLogParser.h:23
Fs::Ufs::UFSSwapLogParser::~UFSSwapLogParser
virtual ~UFSSwapLogParser()
Definition
UFSSwapLogParser.h:28
Fs::Ufs::UFSSwapLogParser::ReadRecord
virtual bool ReadRecord(StoreSwapLogData &swapData)=0
Fs::Ufs::UFSSwapLogParser::Close
void Close()
Definition
UFSSwapLogParser.h:34
StoreSwapLogData
Definition
StoreSwapLogData.h:83
Fs
Definition
Module.h:13
squid
src
fs
ufs
UFSSwapLogParser.h
Generated by
1.9.8