2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_ACLPEERNAME_H
10 #define SQUID_ACLPEERNAME_H
12 #include "acl/Strategised.h"
13 #include "acl/Strategy.h"
15 class ACLPeerNameStrategy
: public ACLStrategy
<const char *>
19 virtual int match (ACLData
<MatchType
> * &, ACLFilledChecklist
*, ACLFlags
&);
20 static ACLPeerNameStrategy
*Instance();
21 /* Not implemented to prevent copies of the instance. */
22 /* Not private to prevent brain dead g+++ warnings about
23 * private constructors with no friends */
24 ACLPeerNameStrategy(ACLPeerNameStrategy
const &);
27 static ACLPeerNameStrategy Instance_
;
28 ACLPeerNameStrategy() {}
30 ACLPeerNameStrategy
&operator=(ACLPeerNameStrategy
const &);
37 static ACL::Prototype RegistryProtoype
;
38 static ACLStrategised
<const char *> RegistryEntry_
;
39 static ACL::Prototype RegexRegistryProtoype
;
40 static ACLStrategised
<char const *> RegexRegistryEntry_
;
43 #endif /* SQUID_ACLPEERNAME_H */