ProtocolData.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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_SRC_ACL_PROTOCOLDATA_H
10 #define SQUID_SRC_ACL_PROTOCOLDATA_H
11 
12 #include "acl/Acl.h"
13 #include "acl/Data.h"
14 #include "anyp/ProtocolType.h"
15 
16 #include <list>
17 
18 class ACLProtocolData : public ACLData<AnyP::ProtocolType>
19 {
21 
22 public:
24  ~ACLProtocolData() override;
25  bool match(AnyP::ProtocolType) override;
26  SBufList dump() const override;
27  void parse() override;
28  bool empty() const override {return values.empty();}
29 
30  std::list<AnyP::ProtocolType> values;
31 };
32 
33 #endif /* SQUID_SRC_ACL_PROTOCOLDATA_H */
34 
SBufList dump() const override
Definition: ProtocolData.cc:38
std::list< SBuf > SBufList
Definition: forward.h:22
bool match(AnyP::ProtocolType) override
Definition: ProtocolData.cc:24
Configured ACL parameter(s) (e.g., domain names in dstdomain ACL).
Definition: Data.h:17
ProtocolType
Definition: ProtocolType.h:23
~ACLProtocolData() override
Definition: ProtocolData.cc:18
bool empty() const override
Definition: ProtocolData.h:28
MEMPROXY_CLASS(ACLProtocolData)
void parse() override
Definition: ProtocolData.cc:49
std::list< AnyP::ProtocolType > values
Definition: ProtocolData.h:30

 

Introduction

Documentation

Support

Miscellaneous