ExtUser.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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_EXTUSER_H
10 #define SQUID_EXTUSER_H
11 
12 #if USE_AUTH
13 
14 #include "acl/Acl.h"
15 #include "acl/Checklist.h"
16 #include "acl/Data.h"
17 
18 class ACLExtUser : public ACL
19 {
21 
22 public:
23  ACLExtUser(ACLData<char const *> *newData, char const *);
24  ACLExtUser (ACLExtUser const &old);
25  ACLExtUser & operator= (ACLExtUser const &rhs);
26  ~ACLExtUser();
27 
28  /* ACL API */
29  virtual char const *typeString() const;
30  virtual void parse();
31  virtual void parseFlags();
32  virtual int match(ACLChecklist *checklist);
33  virtual SBufList dump() const;
34  virtual bool empty () const;
35  virtual ACL *clone()const;
36 
37 private:
39  char const *type_;
40 };
41 
42 #endif /* USE_AUTH */
43 #endif /* SQUID_EXTUSER_H */
44 
char const * type_
Definition: ExtUser.h:39
Definition: Acl.h:39
ACLData< char const * > * data
Definition: ExtUser.h:38
~ACLExtUser()
Definition: ExtUser.cc:22
virtual void parseFlags()
configures ACL options, throwing on configuration errors
Definition: ExtUser.cc:47
ACLExtUser(ACLData< char const * > *newData, char const *)
Definition: ExtUser.cc:27
virtual void parse()
parses node represenation in squid.conf; dies on failures
Definition: ExtUser.cc:53
ACLExtUser & operator=(ACLExtUser const &rhs)
Definition: ExtUser.cc:33
virtual SBufList dump() const
Definition: ExtUser.cc:70
virtual ACL * clone() const
Definition: ExtUser.cc:82
std::list< SBuf > SBufList
Definition: forward.h:26
virtual char const * typeString() const
Definition: ExtUser.cc:41
virtual int match(ACLChecklist *checklist)
Matches the actual data in checklist against this ACL.
Definition: ExtUser.cc:59
virtual bool empty() const
Definition: ExtUser.cc:76
MEMPROXY_CLASS(ACLExtUser)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors