]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/AllOf.h
merge from trunk r14590
[thirdparty/squid.git] / src / acl / AllOf.h
1 /*
2 * Copyright (C) 1996-2016 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_ACL_ALL_OF_H
10 #define SQUID_ACL_ALL_OF_H
11
12 #include "acl/InnerNode.h"
13
14 namespace Acl
15 {
16
17 /// Configurable all-of ACL. Each ACL line is a conjuction of ACLs.
18 /// Uses AndNode and OrNode to handle squid.conf configuration where multiple
19 /// acl all-of lines are always ORed together.
20 class AllOf: public Acl::InnerNode
21 {
22 MEMPROXY_CLASS(AllOf);
23
24 public:
25 /* ACL API */
26 virtual char const *typeString() const;
27 virtual ACL *clone() const;
28 virtual void parse();
29 virtual SBufList dump() const;
30
31 private:
32 /* Acl::InnerNode API */
33 virtual int doMatch(ACLChecklist *checklist, Nodes::const_iterator start) const;
34
35 static Prototype RegistryProtoype;
36 static AllOf RegistryEntry_;
37 };
38
39 } // namespace Acl
40
41 #endif /* SQUID_ACL_ALL_OF_H */
42