Squid Web Cache
master
Loading...
Searching...
No Matches
Config.cc
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
#include "
squid.h
"
10
#include "
cache_cf.h
"
11
#include "
debug/Stream.h
"
12
#include "
format/Config.h
"
13
14
Format::FmtConfig
Format::TheConfig
;
15
16
void
17
Format::FmtConfig::registerTokens
(
const
SBuf
&nsName,
TokenTableEntry
const
*tokenArray)
18
{
19
debugs
(46, 2,
"register format tokens for '"
<< nsName <<
"'"
);
20
if
(tokenArray)
21
tokens
.emplace_back(
TokenNamespace
(nsName, tokenArray));
22
else
23
debugs
(0,
DBG_CRITICAL
,
"ERROR: Squid BUG: format tokens for '"
<< nsName <<
"' missing!"
);
24
}
25
cache_cf.h
Format::FmtConfig
The set of custom formats defined in squid.conf.
Definition
Config.h:39
Format::FmtConfig::tokens
std::list< TokenNamespace > tokens
list of token namespaces registered
Definition
Config.h:49
Format::FmtConfig::registerTokens
void registerTokens(const SBuf &nsName, TokenTableEntry const *tokenArray)
Definition
Config.cc:17
Format::TokenNamespace
Definition
Config.h:25
Format::TokenTableEntry
One entry in a table of format tokens.
Definition
TokenTableEntry.h:31
SBuf
Definition
SBuf.h:94
Stream.h
debugs
#define debugs(SECTION, LEVEL, CONTENT)
Definition
Stream.h:192
DBG_CRITICAL
#define DBG_CRITICAL
Definition
Stream.h:37
Config.h
Format::TheConfig
FmtConfig TheConfig
Definition
Config.cc:14
squid.h
squid
src
format
Config.cc
Generated by
1.9.8