]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/TimeData.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / TimeData.h
CommitLineData
5dee515e 1/*
4ac4a490 2 * Copyright (C) 1996-2017 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_ACLTIMEDATA_H
10#define SQUID_ACLTIMEDATA_H
741c2986 11
3ad63615
AR
12#include "acl/Acl.h"
13#include "acl/Data.h"
602d9612 14#include "splay.h"
5dee515e 15
62e76326 16class ACLTimeData : public ACLData<time_t>
17{
b001e822 18 MEMPROXY_CLASS(ACLTimeData);
5dee515e 19
741c2986 20public:
5dee515e 21 ACLTimeData();
22 ACLTimeData(ACLTimeData const &);
23 ACLTimeData&operator=(ACLTimeData const &);
24 virtual ~ACLTimeData();
25 bool match(time_t);
2cb8d372 26 virtual SBufList dump() const;
5dee515e 27 void parse();
65092baf 28 bool empty() const;
5dee515e 29 virtual ACLData<time_t> *clone() const;
62e76326 30
31private:
5dee515e 32 int weekbits;
33 int start;
34 int stop;
35 ACLTimeData *next;
36};
37
38#endif /* SQUID_ACLTIMEDATA_H */
f53969cc 39