]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/AnnotationData.cc
4cec359ba111d72d1733455eced0a212eec761dc
2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
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.
11 #include "acl/AnnotationData.h"
12 #include "acl/Checklist.h"
14 #include "ConfigParser.h"
15 #include "debug/Stream.h"
16 #include "format/Format.h"
17 #include "sbuf/Algorithms.h"
19 ACLAnnotationData::ACLAnnotationData()
20 : notes(new Notes("annotation_data")) {}
23 ACLAnnotationData::dump() const
26 if (const char *strNotes
= notes
->toString())
27 sl
.push_back(SBuf(strNotes
));
32 ACLAnnotationData::parse()
35 if (char *t
= ConfigParser::PeekAtToken()) {
36 debugs(29, DBG_CRITICAL
, "FATAL: Unexpected argument '" << t
<< "' after annotation specification");
43 ACLAnnotationData::annotate(NotePairs::Pointer pairs
, const CharacterSet
*delimiters
, const AccessLogEntry::Pointer
&al
)
45 notes
->updateNotePairs(pairs
, delimiters
, al
);