]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/AnnotationData.cc
2 * Copyright (C) 1996-2018 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"
16 #include "format/Format.h"
17 #include "sbuf/Algorithms.h"
19 const char *AnnotationBlackList
[] = {
34 ACLAnnotationData::ACLAnnotationData()
35 : notes(new Notes("annotation_data", AnnotationBlackList
)) {}
38 ACLAnnotationData::dump() const
41 if (const char *strNotes
= notes
->toString())
42 sl
.push_back(SBuf(strNotes
));
47 ACLAnnotationData::parse()
50 if (char *t
= ConfigParser::PeekAtToken()) {
51 debugs(29, DBG_CRITICAL
, "FATAL: Unexpected argument '" << t
<< "' after annotation specification");
58 ACLAnnotationData::annotate(NotePairs::Pointer pairs
, const CharacterSet
*delimiters
, const AccessLogEntry::Pointer
&al
)
60 notes
->updateNotePairs(pairs
, delimiters
, al
);
63 ACLData
<NotePairs::Entry
*> *
64 ACLAnnotationData::clone() const
66 return new ACLAnnotationData
;