source: squid-ssl/trunk/fuentes/src/acl/UserData.h @ 5495

Last change on this file since 5495 was 5495, checked in by Juanma, 2 years ago

Initial release

File size: 995 bytes
Line 
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#include "acl/Acl.h"
12#include "acl/Data.h"
13#include "SBuf.h"
14
15#include <set>
16
17class ACLUserData : public ACLData<char const *>
18{
19
20public:
21    MEMPROXY_CLASS(ACLUserData);
22
23    virtual ~ACLUserData() {}
24    ACLUserData();
25    bool match(char const *user);
26    virtual SBufList dump() const;
27    void parse();
28    bool empty() const;
29    virtual ACLData<char const *> *clone() const;
30
31private:
32
33    typedef std::set<SBuf,bool(*)(const SBuf&, const SBuf&)> UserDataNames_t;
34    UserDataNames_t userDataNames;
35
36    struct {
37        bool case_insensitive;
38        bool required;
39    } flags;
40
41};
42
43MEMPROXY_CLASS_INLINE(ACLUserData);
44
45#endif /* SQUID_ACLUSERDATA_H */
46
Note: See TracBrowser for help on using the repository browser.