]>
Commit | Line | Data |
---|---|---|
5dee515e | 1 | /* |
ef57eb7b | 2 | * Copyright (C) 1996-2016 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 | ||
9 | #ifndef SQUID_ACLTIME_H | |
10 | #define SQUID_ACLTIME_H | |
c0941a6a AR |
11 | #include "acl/Acl.h" |
12 | #include "acl/Data.h" | |
13 | #include "acl/Strategised.h" | |
14 | ||
15 | class ACLChecklist; // XXX: we do not need it | |
5dee515e | 16 | |
b0dd28ba | 17 | class ACLTimeStrategy : public ACLStrategy<time_t> |
5dee515e | 18 | { |
62e76326 | 19 | |
20 | public: | |
33810b1d | 21 | virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *, ACLFlags &); |
5dee515e | 22 | static ACLTimeStrategy *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 | ACLTimeStrategy(ACLTimeStrategy const &); | |
62e76326 | 27 | |
28 | private: | |
5dee515e | 29 | static ACLTimeStrategy Instance_; |
26ac0430 | 30 | ACLTimeStrategy() {} |
62e76326 | 31 | |
5dee515e | 32 | ACLTimeStrategy&operator=(ACLTimeStrategy const &); |
33 | }; | |
34 | ||
62e76326 | 35 | class ACLTime |
36 | { | |
37 | ||
38 | public: | |
5dee515e | 39 | static ACL::Prototype RegistryProtoype; |
40 | static ACLStrategised<time_t> RegistryEntry_; | |
41 | }; | |
42 | ||
43 | #endif /* SQUID_ACLTIME_H */ | |
f53969cc | 44 |