]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/NoteData.h
Maintenance: Consistent use of C++11 "override" specifier (#1224)
[thirdparty/squid.git] / src / acl / NoteData.h
1 /*
2 * Copyright (C) 1996-2022 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_ACLNOTEDATA_H
10 #define SQUID_ACLNOTEDATA_H
11
12 #include "acl/Data.h"
13 #include "Notes.h"
14 #include "SquidString.h"
15
16 class ACLStringData;
17
18 /// \ingroup ACLAPI
19 class ACLNoteData : public ACLData<NotePairs::Entry *>
20 {
21 MEMPROXY_CLASS(ACLNoteData);
22
23 public:
24 ACLNoteData();
25 ~ACLNoteData() override;
26 bool match(NotePairs::Entry *) override;
27 SBufList dump() const override;
28 void parse() override;
29 bool empty() const override;
30
31 private:
32 SBuf name; ///< Note name to check. It is always set
33 ACLStringData *values; ///< if set, at least one value must match
34 };
35
36 #endif /* SQUID_ACLNOTEDATA_H */
37