RegexData.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2022 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_ACLREGEXDATA_H
10 #define SQUID_ACLREGEXDATA_H
11 
12 #include "acl/Data.h"
13 
14 #include <list>
15 
16 class RegexPattern;
17 
18 class ACLRegexData : public ACLData<char const *>
19 {
21 
22 public:
23  virtual ~ACLRegexData();
24  virtual bool match(char const *user);
25  virtual SBufList dump() const;
26  virtual void parse();
27  virtual bool empty() const;
28 
29 private:
32 
33  /* ACLData API */
34  virtual const Acl::Options &lineOptions();
35 
36  std::list<RegexPattern> data;
37 };
38 
39 #endif /* SQUID_ACLREGEXDATA_H */
40 
Configured ACL parameter(s) (e.g., domain names in dstdomain ACL).
Definition: Data.h:18
std::list< RegexPattern > data
Definition: RegexData.h:36
virtual ~ACLRegexData()
Definition: RegexData.cc:31
static Acl::BooleanOptionValue CaseInsensitive_
whether parse() is called in a case insensitive context
Definition: RegexData.h:31
virtual const Acl::Options & lineOptions()
supported ACL "line" options (e.g., "-i")
Definition: RegexData.cc:36
virtual void parse()
Definition: RegexData.cc:218
virtual SBufList dump() const
Definition: RegexData.cc:66
virtual bool match(char const *user)
Definition: RegexData.cc:45
MEMPROXY_CLASS(ACLRegexData)
virtual bool empty() const
Definition: RegexData.cc:250
std::vector< const Option * > Options
Definition: Options.h:214
OptionValue< bool > BooleanOptionValue
Definition: Options.h:200
std::list< SBuf > SBufList
Definition: forward.h:22

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors