Squid Web Cache
master
Loading...
Searching...
No Matches
AnnotationData.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_ACL_ANNOTATIONDATA_H
10
#define SQUID_SRC_ACL_ANNOTATIONDATA_H
11
12
#include "
AccessLogEntry.h
"
13
#include "
acl/Data.h
"
14
#include "
Notes.h
"
15
17
class
ACLAnnotationData
:
public
ACLData
<NotePairs::Entry *>
18
{
19
MEMPROXY_CLASS
(
ACLAnnotationData
);
20
21
public
:
22
ACLAnnotationData
();
23
24
/* ACLData<M> API */
25
bool
match
(
NotePairs::Entry
*)
override
{
return
true
; }
26
SBufList
dump
()
const override
;
27
void
parse
()
override
;
28
bool
empty
()
const override
{
return
notes
->
empty
(); }
29
31
void
annotate
(
NotePairs::Pointer
pairs,
const
CharacterSet
*delimiters,
const
AccessLogEntry::Pointer
&al);
32
33
private
:
34
Notes::Pointer
notes
;
35
};
36
37
#endif
/* SQUID_SRC_ACL_ANNOTATIONDATA_H */
38
AccessLogEntry.h
Data.h
Notes.h
ACLAnnotationData
Definition
AnnotationData.h:18
ACLAnnotationData::dump
SBufList dump() const override
Definition
AnnotationData.cc:24
ACLAnnotationData::parse
void parse() override
Definition
AnnotationData.cc:35
ACLAnnotationData::empty
bool empty() const override
Definition
AnnotationData.h:28
ACLAnnotationData::annotate
void annotate(NotePairs::Pointer pairs, const CharacterSet *delimiters, const AccessLogEntry::Pointer &al)
Stores annotations into pairs.
Definition
AnnotationData.cc:46
ACLAnnotationData::ACLAnnotationData
ACLAnnotationData()
Definition
AnnotationData.cc:20
ACLAnnotationData::MEMPROXY_CLASS
MEMPROXY_CLASS(ACLAnnotationData)
ACLAnnotationData::match
bool match(NotePairs::Entry *) override
Definition
AnnotationData.h:25
ACLAnnotationData::notes
Notes::Pointer notes
Definition
AnnotationData.h:34
ACLData
Configured ACL parameter(s) (e.g., domain names in dstdomain ACL).
Definition
Data.h:18
CharacterSet
optimized set of C chars, with quick membership test and merge support
Definition
CharacterSet.h:18
NotePairs::Entry
Used to store a note key/value pair.
Definition
Notes.h:187
Notes::empty
bool empty() const
Definition
Notes.h:145
RefCount< NotePairs >
SBufList
std::list< SBuf > SBufList
Definition
forward.h:23
squid
src
acl
AnnotationData.h
Generated by
1.9.8