]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/AllOf.h
Major ACL handling update, including the following changes:
[thirdparty/squid.git] / src / acl / AllOf.h
1 #ifndef SQUID_ACL_ALL_OF_H
2 #define SQUID_ACL_ALL_OF_H
3
4 #include "acl/InnerNode.h"
5
6 namespace Acl {
7
8 /// Configurable all-of ACL. Each ACL line is a conjuction of ACLs.
9 /// Uses AndNode and OrNode to handle squid.conf configuration where multiple
10 /// acl all-of lines are always ORed together.
11 class AllOf: public Acl::InnerNode
12 {
13 public:
14 MEMPROXY_CLASS(AllOf);
15
16 /* ACL API */
17 virtual char const *typeString() const;
18 virtual ACL *clone() const;
19 virtual void parse();
20 virtual wordlist *dump() const;
21
22 private:
23 /* Acl::InnerNode API */
24 virtual int doMatch(ACLChecklist *checklist, Nodes::const_iterator start) const;
25
26 static Prototype RegistryProtoype;
27 static AllOf RegistryEntry_;
28 };
29 MEMPROXY_CLASS_INLINE(Acl::AllOf);
30
31 } // namespace Acl
32
33 #endif /* SQUID_ACL_ALL_OF_H */