]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/UserData.h
Merge from trunk
[thirdparty/squid.git] / src / acl / UserData.h
1 /*
2 * Copyright (C) 1996-2015 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.h"
15
16 #include <set>
17
18 class ACLUserData : public ACLData<char const *>
19 {
20 MEMPROXY_CLASS(ACLUserData);
21
22 public:
23 virtual ~ACLUserData() {}
24 bool match(char const *user);
25 virtual SBufList dump() const;
26 void parse();
27 bool empty() const;
28 virtual ACLData<char const *> *clone() const;
29
30 private:
31
32 typedef std::set<SBuf,bool(*)(const SBuf&, const SBuf&)> UserDataNames_t;
33 UserDataNames_t userDataNames;
34
35 struct {
36 bool case_insensitive;
37 bool required;
38 } flags;
39
40 };
41
42 #endif /* SQUID_ACLUSERDATA_H */
43