]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
f70aedc4 | 2 | * Copyright (C) 1996-2021 The Squid Software Foundation and contributors |
bbc27441 AJ |
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 | ||
bbaf2685 AJ |
9 | #ifndef SQUID_ACLHIERCODEDATA_H |
10 | #define SQUID_ACLHIERCODEDATA_H | |
11 | ||
12 | #include "acl/Acl.h" | |
13 | #include "acl/Data.h" | |
bbaf2685 AJ |
14 | #include "hier_code.h" |
15 | ||
bbaf2685 AJ |
16 | class ACLHierCodeData : public ACLData<hier_code> |
17 | { | |
bbaf2685 AJ |
18 | MEMPROXY_CLASS(ACLHierCodeData); |
19 | ||
741c2986 | 20 | public: |
bbaf2685 AJ |
21 | ACLHierCodeData(); |
22 | ACLHierCodeData(ACLHierCodeData const &); | |
23 | ACLHierCodeData &operator= (ACLHierCodeData const &); | |
24 | virtual ~ACLHierCodeData(); | |
25 | bool match(hier_code); | |
2cb8d372 | 26 | virtual SBufList dump() const; |
bbaf2685 AJ |
27 | void parse(); |
28 | bool empty() const; | |
29 | virtual ACLData<hier_code> *clone() const; | |
30 | ||
cd44274b | 31 | /// mask of codes this ACL might match. |
bbaf2685 AJ |
32 | bool values[HIER_MAX]; |
33 | }; | |
34 | ||
bbaf2685 | 35 | #endif /* SQUID_ACLHIERCODEDATA_H */ |
f53969cc | 36 |