UserData.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_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 virtual ~ACLUserData() {}
25 bool match(char const *user);
26 virtual SBufList dump() const;
27 virtual void parse();
28 bool empty() const;
29
30private:
33
34 /* ACLData API */
35 virtual const Acl::Options &lineOptions();
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
struct ACLUserData::@25 flags
virtual const Acl::Options & lineOptions()
supported ACL "line" options (e.g., "-i")
Definition: UserData.cc:82
virtual SBufList dump() const
Definition: UserData.cc:42
bool required
Definition: UserData.h:42
MEMPROXY_CLASS(ACLUserData)
virtual ~ACLUserData()
Definition: UserData.h:23
bool empty() const
Definition: UserData.cc:146
virtual void parse()
Definition: UserData.cc:91
bool match(char const *user)
Definition: UserData.cc:24
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