]>
Commit | Line | Data |
---|---|---|
5dee515e | 1 | /* |
bde978a6 | 2 | * Copyright (C) 1996-2015 The Squid Software Foundation and contributors |
5dee515e | 3 | * |
bbc27441 AJ |
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. | |
5dee515e | 7 | */ |
8 | ||
b0dd28ba | 9 | #ifndef SQUID_ACLSTRINGDATA_H |
10 | #define SQUID_ACLSTRINGDATA_H | |
741c2986 | 11 | |
3ad63615 AR |
12 | #include "acl/Acl.h" |
13 | #include "acl/Data.h" | |
602d9612 | 14 | #include "splay.h" |
5dee515e | 15 | |
b0dd28ba | 16 | class ACLStringData : public ACLData<char const *> |
62e76326 | 17 | { |
b001e822 | 18 | MEMPROXY_CLASS(ACLStringData); |
b0dd28ba | 19 | |
741c2986 | 20 | public: |
b0dd28ba | 21 | ACLStringData(); |
22 | ACLStringData(ACLStringData const &); | |
23 | ACLStringData &operator= (ACLStringData const &); | |
24 | virtual ~ACLStringData(); | |
25 | bool match(char const *); | |
2cb8d372 | 26 | virtual SBufList dump() const; |
c302ddb5 | 27 | virtual void parse(); |
65092baf | 28 | bool empty() const; |
b0dd28ba | 29 | virtual ACLData<char const *> *clone() const; |
72b12f9e | 30 | /// Insert a string data value |
00352183 | 31 | void insert(const char *); |
62e76326 | 32 | |
61e84437 | 33 | Splay<char *> *values; |
b0dd28ba | 34 | }; |
5dee515e | 35 | |
b0dd28ba | 36 | #endif /* SQUID_ACLSTRINGDATA_H */ |
f53969cc | 37 |