StringData.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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
18class ACLStringData : public ACLData<char const *>
19{
21
22public:
24 virtual ~ACLStringData() {}
26 bool match(char const *);
27 bool match(const SBuf &);
28 virtual SBufList dump() const;
29 virtual void parse();
30 bool empty() const;
31
33 void insert(const char *);
34
35private:
36 typedef std::set<SBuf> StringValues_t;
38};
39
40#endif /* SQUID_ACLSTRINGDATA_H */
41
Configured ACL parameter(s) (e.g., domain names in dstdomain ACL).
Definition: Data.h:18
MEMPROXY_CLASS(ACLStringData)
virtual SBufList dump() const
Definition: StringData.cc:45
bool match(char const *)
Definition: StringData.cc:39
void insert(const char *)
Insert a string data value.
Definition: StringData.cc:18
virtual ~ACLStringData()
Definition: StringData.h:24
virtual void parse()
Definition: StringData.cc:53
StringValues_t stringValues
Definition: StringData.h:37
std::set< SBuf > StringValues_t
Definition: StringData.h:36
bool empty() const
Definition: StringData.cc:60
Definition: SBuf.h:94
std::list< SBuf > SBufList
Definition: forward.h:23

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors