AnnotationData.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 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_ACLANNOTATIONDATA_H
10 #define SQUID_ACLANNOTATIONDATA_H
11 
12 #include "AccessLogEntry.h"
13 #include "acl/Data.h"
14 #include "Notes.h"
15 
17 class ACLAnnotationData : public ACLData<NotePairs::Entry *>
18 {
20 
21 public:
23 
24  /* ACLData<M> API */
25  virtual bool match(NotePairs::Entry *) { return true; }
26  virtual SBufList dump() const;
27  virtual void parse();
28  virtual bool empty() const { return notes->empty(); }
29  virtual ACLData<NotePairs::Entry *> *clone() const;
30 
32  void annotate(NotePairs::Pointer pairs, const CharacterSet *delimiters, const AccessLogEntry::Pointer &al);
33 
34 private:
36 };
37 
38 #endif /* SQUID_ACLANNOTATIONDATA_H */
39 
virtual ACLData< NotePairs::Entry * > * clone() const
MEMPROXY_CLASS(ACLAnnotationData)
virtual bool match(NotePairs::Entry *)
Configured ACL parameter(s) (e.g., domain names in dstdomain ACL).
Definition: Data.h:17
Used to store a note key/value pair.
Definition: Notes.h:173
void annotate(NotePairs::Pointer pairs, const CharacterSet *delimiters, const AccessLogEntry::Pointer &al)
Stores annotations into pairs.
optimized set of C chars, with quick membership test and merge support
Definition: CharacterSet.h:17
virtual SBufList dump() const
virtual void parse()
Notes::Pointer notes
std::list< SBuf > SBufList
Definition: forward.h:22
virtual bool empty() const
bool empty() const
Definition: Notes.h:138

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors