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