AccessRule.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 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_ADAPTATION__ACCESS_RULE_H
10 #define SQUID_ADAPTATION__ACCESS_RULE_H
11 
12 #include "acl/forward.h"
13 #include "adaptation/forward.h"
14 #include "SquidString.h"
15 
16 #include <vector>
17 
18 class ConfigParser;
19 
20 namespace Adaptation
21 {
22 
23 // manages adaptation_access configuration by associating an acl with
24 // an adaptation service group
26 {
27 public:
28  AccessRule(const String &groupId);
29  ~AccessRule();
30 
31  void parse(ConfigParser &parser);
32  void finalize();
33 
34  // service group consisting of one or more services
36 
37 public:
38  typedef int Id;
39  const Id id;
42 
43 private:
44  static Id LastId;
45 };
46 
47 typedef std::vector<Adaptation::AccessRule*> AccessRules;
48 AccessRules &AllRules();
51 
52 } // namespace Adaptation
53 
54 #endif /* SQUID_ADAPTATION__ACCESS_RULE_H */
55 
AccessRule * FindRuleByGroupId(const String &groupId)
Definition: AccessRule.cc:81
AccessRule * FindRule(const AccessRule::Id &id)
Definition: AccessRule.cc:69
acl_access * acl
Definition: AccessRule.h:41
std::vector< Adaptation::AccessRule * > AccessRules
Definition: AccessRule.h:47
ServiceGroupPointer group()
Definition: AccessRule.cc:55
AccessRules & AllRules()
Definition: AccessRule.cc:61
void parse(ConfigParser &parser)
Definition: AccessRule.cc:30
AccessRule(const String &groupId)
Definition: AccessRule.cc:20
#define acl_access
Definition: forward.h:44

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors