RegexData.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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
16class RegexPattern;
17
18class ACLRegexData : public ACLData<char const *>
19{
21
22public:
23 ~ACLRegexData() override;
24 bool match(char const *user) override;
25 SBufList dump() const override;
26 void parse() override;
27 bool empty() const override;
28
29private:
32
33 /* ACLData API */
34 const Acl::Options &lineOptions() override;
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
const Acl::Options & lineOptions() override
supported ACL "line" options (e.g., "-i")
Definition: RegexData.cc:36
std::list< RegexPattern > data
Definition: RegexData.h:36
static Acl::BooleanOptionValue CaseInsensitive_
whether parse() is called in a case insensitive context
Definition: RegexData.h:31
bool empty() const override
Definition: RegexData.cc:253
~ACLRegexData() override
Definition: RegexData.cc:31
bool match(char const *user) override
Definition: RegexData.cc:45
MEMPROXY_CLASS(ACLRegexData)
void parse() override
Definition: RegexData.cc:221
SBufList dump() const override
Definition: RegexData.cc:66
std::vector< const Option * > Options
Definition: Options.h:214
OptionValue< bool > BooleanOptionValue
Definition: Options.h:200
std::list< SBuf > SBufList
Definition: forward.h:23

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors