]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/SourceAsn.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / SourceAsn.h
1 /*
2 * Copyright (C) 1996-2014 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_ACL_SOURCEASN_H
10 #define SQUID_ACL_SOURCEASN_H
11
12 #include "acl/Strategy.h"
13 #include "ip/Address.h"
14
15 class ACLChecklist;
16
17 class ACLSourceASNStrategy : public ACLStrategy<Ip::Address>
18 {
19
20 public:
21 virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *, ACLFlags &);
22 static ACLSourceASNStrategy *Instance();
23 /* Not implemented to prevent copies of the instance. */
24 /* Not private to prevent brain dead g+++ warnings about
25 * private constructors with no friends */
26 ACLSourceASNStrategy(ACLSourceASNStrategy const &);
27
28 private:
29 static ACLSourceASNStrategy Instance_;
30 ACLSourceASNStrategy() {}
31
32 ACLSourceASNStrategy&operator=(ACLSourceASNStrategy const &);
33 };
34
35 #endif /* SQUID_ACL_SOURCEASN_H */
36