Note.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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_NOTE_H
10 #define SQUID_SRC_ACL_NOTE_H
11 
12 #include "acl/CharacterSetOption.h"
13 #include "acl/Data.h"
14 #include "acl/ParameterizedNode.h"
15 #include "Notes.h"
16 
17 namespace Acl {
18 
20 class AnnotationCheck: public ParameterizedNode< ACLData<NotePairs::Entry *> >
21 {
22 public:
23  AnnotationCheck(): delimiters(CharacterSet(__FILE__, ",")) {}
24 
25  const Acl::Options &options() override;
26 
28 };
29 
32 {
33 public:
34  /* Acl::Node API */
35  int match(ACLChecklist *) override;
36  bool requiresRequest() const override { return true; }
37 
38 private:
39  bool matchNotes(const NotePairs *) const;
40 };
41 
42 } // namespace Acl
43 
44 #endif /* SQUID_SRC_ACL_NOTE_H */
45 
bool matchNotes(const NotePairs *) const
Definition: Note.cc:47
common parent of several ACLs dealing with transaction annotations
Definition: Note.h:20
std::vector< const Option * > Options
Definition: Options.h:217
int match(ACLChecklist *) override
Matches the actual data in checklist against this Acl::Node.
Definition: Note.cc:30
bool requiresRequest() const override
whether our (i.e. shallow) match() requires checklist to have a request
Definition: Note.h:36
Definition: Acl.cc:33
Acl::CharacterSetOptionValue delimiters
annotation separators
Definition: Note.h:27
const Acl::Options & options() override
Definition: Note.cc:19
optimized set of C chars, with quick membership test and merge support
Definition: CharacterSet.h:17
a "note" ACL
Definition: Note.h:31

 

Introduction

Documentation

Support

Miscellaneous