]> git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/AccessRule.h
Made testheaders.h happy.
[thirdparty/squid.git] / src / adaptation / AccessRule.h
1 #ifndef SQUID_ADAPTATION__ACCESS_RULE_H
2 #define SQUID_ADAPTATION__ACCESS_RULE_H
3
4 #include "SquidString.h"
5 #include "adaptation/forward.h"
6
7 class acl_access;
8 class ConfigParser;
9
10 namespace Adaptation {
11
12 // manages adaptation_access configuration by associating an acl with
13 // an adaptation service group
14 class AccessRule {
15 public:
16 AccessRule();
17 ~AccessRule();
18
19 void parse(ConfigParser &parser);
20 void finalize();
21
22 // service group consisting of one or more services
23 ServiceGroup *group();
24
25 public:
26 typedef int Id;
27 const Id id;
28 String groupId;
29 acl_access *acl;
30
31 private:
32 static Id LastId;
33 };
34
35 typedef Vector<Adaptation::AccessRule*> AccessRules;
36 extern AccessRules &AllRules();
37 extern AccessRule *FindRule(const AccessRule::Id &id);
38
39 } // namespace Adaptation
40
41 #endif /* SQUID_ADAPTATION__ACCESS_RULE_H */