]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/TimeData.h
Boilerplate: update copyright blurbs on src/
[thirdparty/squid.git] / src / acl / TimeData.h
CommitLineData
5dee515e 1/*
bbc27441 2 * Copyright (C) 1996-2014 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
3ad63615
AR
11#include "acl/Acl.h"
12#include "acl/Data.h"
602d9612 13#include "splay.h"
5dee515e 14
62e76326 15class ACLTimeData : public ACLData<time_t>
16{
17
18public:
b001e822 19 MEMPROXY_CLASS(ACLTimeData);
5dee515e 20
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
d85b8894 38MEMPROXY_CLASS_INLINE(ACLTimeData);
b001e822 39
5dee515e 40#endif /* SQUID_ACLTIMEDATA_H */