TimeData.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
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_ACLTIMEDATA_H
10 #define SQUID_ACLTIMEDATA_H
11 
12 #include "acl/Acl.h"
13 #include "acl/Data.h"
14 
15 class ACLTimeData : public ACLData<time_t>
16 {
18 
19 public:
20  ACLTimeData();
21  ACLTimeData(ACLTimeData const &);
23  virtual ~ACLTimeData();
24  bool match(time_t);
25  virtual SBufList dump() const;
26  void parse();
27  bool empty() const;
28  virtual ACLData<time_t> *clone() const;
29 
30 private:
31  int weekbits;
32  int start;
33  int stop;
35 };
36 
37 #endif /* SQUID_ACLTIMEDATA_H */
38 
virtual ACLData< time_t > * clone() const
Definition: TimeData.cc:230
ACLTimeData & operator=(ACLTimeData const &)
Definition: TimeData.cc:28
virtual ~ACLTimeData()
Definition: TimeData.cc:41
ACLTimeData * next
Definition: TimeData.h:34
bool match(time_t)
Definition: TimeData.cc:48
MEMPROXY_CLASS(ACLTimeData)
Configured ACL parameter(s) (e.g., domain names in dstdomain ACL).
Definition: Data.h:17
int start
Definition: TimeData.h:32
std::list< SBuf > SBufList
Definition: forward.h:26
int stop
Definition: TimeData.h:33
int weekbits
Definition: TimeData.h:31
bool empty() const
Definition: TimeData.cc:224
virtual SBufList dump() const
Definition: TimeData.cc:78
void parse()
Definition: TimeData.cc:102

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors