StringData.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_ACLSTRINGDATA_H
10 #define SQUID_ACLSTRINGDATA_H
11 
12 #include "acl/Acl.h"
13 #include "acl/Data.h"
14 #include "sbuf/SBuf.h"
15 
16 #include <set>
17 
18 class ACLStringData : public ACLData<char const *>
19 {
21 
22 public:
26  virtual ~ACLStringData() {}
28  bool match(char const *);
29  bool match(const SBuf &);
30  virtual SBufList dump() const;
31  virtual void parse();
32  bool empty() const;
33  virtual ACLData<char const *> *clone() const;
35  void insert(const char *);
36 
37 private:
38  typedef std::set<SBuf> StringValues_t;
40 };
41 
42 #endif /* SQUID_ACLSTRINGDATA_H */
43 
ACLStringData & operator=(ACLStringData const &)
virtual ~ACLStringData()
Definition: StringData.h:26
Definition: SBuf.h:87
std::set< SBuf > StringValues_t
Definition: StringData.h:38
Configured ACL parameter(s) (e.g., domain names in dstdomain ACL).
Definition: Data.h:17
virtual SBufList dump() const
Definition: StringData.cc:49
StringValues_t stringValues
Definition: StringData.h:39
virtual ACLData< char const * > * clone() const
Definition: StringData.cc:70
MEMPROXY_CLASS(ACLStringData)
std::list< SBuf > SBufList
Definition: forward.h:26
bool match(char const *)
Definition: StringData.cc:43
virtual void parse()
Definition: StringData.cc:57
bool empty() const
Definition: StringData.cc:64
void insert(const char *)
Insert a string data value.
Definition: StringData.cc:22

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors