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