HasComponentData.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_ACLHASCOMPONENTDATA_H
10 #define SQUID_ACLHASCOMPONENTDATA_H
11 
12 #include "acl/Checklist.h"
13 #include "acl/Data.h"
14 
16 class ACLHasComponentData : public ACLData<ACLChecklist *>
17 {
19 
20 public:
22 
23  /* ACLData<M> API */
24  virtual bool match(ACLChecklist *) override;
25  virtual SBufList dump() const override;
26  virtual void parse() override;
27  virtual bool empty() const override { return false; }
28  virtual ACLData<ACLChecklist *> *clone() const override;
29 
30 private:
32  void parseComponent(const char *token);
33 
34  static const SBuf RequestStr;
35  static const SBuf ResponseStr;
36  static const SBuf AleStr;
37 
38  typedef bool (ACLChecklist::*ComponentCheck)() const;
40  std::vector<ComponentCheck> componentMethods;
41 };
42 
43 #endif
44 
std::vector< ComponentCheck > componentMethods
component check callbacks, ordered by component kind ID
virtual void parse() override
Definition: SBuf.h:87
void parseComponent(const char *token)
virtual ACLData< ACLChecklist * > * clone() const override
virtual bool match(ACLChecklist *) override
virtual SBufList dump() const override
Configured ACL parameter(s) (e.g., domain names in dstdomain ACL).
Definition: Data.h:17
static const SBuf ResponseStr
MEMPROXY_CLASS(ACLHasComponentData)
std::list< SBuf > SBufList
Definition: forward.h:26
virtual bool empty() const override
static const SBuf RequestStr
bool(ACLChecklist::* ComponentCheck)() const
static const SBuf AleStr

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors