UserData.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_ACLUSERDATA_H
10#define SQUID_ACLUSERDATA_H
11
12#include "acl/Acl.h"
13#include "acl/Data.h"
14#include "sbuf/SBuf.h"
15
16#include <set>
17
18class ACLUserData : public ACLData<char const *>
19{
21
22public:
23 ~ACLUserData() override {}
25 bool match(char const *user) override;
26 SBufList dump() const override;
27 void parse() override;
28 bool empty() const override;
29
30private:
33
34 /* ACLData API */
35 const Acl::Options &lineOptions() override;
36
37 typedef std::set<SBuf,bool(*)(const SBuf&, const SBuf&)> UserDataNames_t;
39
40 struct {
44
45};
46
47#endif /* SQUID_ACLUSERDATA_H */
48
Configured ACL parameter(s) (e.g., domain names in dstdomain ACL).
Definition: Data.h:18
std::set< SBuf, bool(*)(const SBuf &, const SBuf &)> UserDataNames_t
Definition: UserData.h:37
UserDataNames_t userDataNames
Definition: UserData.h:38
bool case_insensitive
Definition: UserData.h:41
bool empty() const override
Definition: UserData.cc:146
~ACLUserData() override
Definition: UserData.h:23
bool required
Definition: UserData.h:42
MEMPROXY_CLASS(ACLUserData)
const Acl::Options & lineOptions() override
supported ACL "line" options (e.g., "-i")
Definition: UserData.cc:82
struct ACLUserData::@23 flags
bool match(char const *user) override
Definition: UserData.cc:24
void parse() override
Definition: UserData.cc:91
SBufList dump() const override
Definition: UserData.cc:42
static Acl::BooleanOptionValue CaseInsensitive_
whether parse() is called in a case insensitive context
Definition: UserData.h:32
Definition: SBuf.h:94
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