]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/SquidError.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / SquidError.h
CommitLineData
3248e962 1/*
4ac4a490 2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3248e962
CT
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_ACLSQUIDERROR_H
10#define SQUID_ACLSQUIDERROR_H
11
12#include "acl/Strategised.h"
13#include "acl/Strategy.h"
14#include "err_type.h"
15
16class ACLSquidErrorStrategy : public ACLStrategy<err_type>
17{
18
19public:
20 virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *, ACLFlags &);
21
22 static ACLSquidErrorStrategy *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 ACLSquidErrorStrategy(ACLSquidErrorStrategy const &);
27
28private:
29 static ACLSquidErrorStrategy Instance_;
30 ACLSquidErrorStrategy() {}
31
32 ACLSquidErrorStrategy&operator=(ACLSquidErrorStrategy const &);
33};
34
35class ACLSquidError
36{
37
38private:
39 static ACL::Prototype RegistryProtoype;
40 static ACLStrategised<err_type> RegistryEntry_;
41};
42
43#endif /* SQUID_ACLSQUIDERROR_H */
44352c16 44