2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_ACL_RANDOM_H
10 #define SQUID_ACL_RANDOM_H
13 #include "acl/Checklist.h"
15 class ACLRandom
: public ACL
17 MEMPROXY_CLASS(ACLRandom
);
20 ACLRandom(char const *);
21 ACLRandom(ACLRandom
const &);
23 ACLRandom
&operator=(ACLRandom
const &);
25 virtual ACL
*clone()const;
26 virtual char const *typeString() const;
28 virtual int match(ACLChecklist
*checklist
);
29 virtual SBufList
dump() const;
30 virtual bool empty () const;
31 virtual bool valid() const;
34 static Prototype RegistryProtoype
;
35 static ACLRandom RegistryEntry_
;
36 double data
; // value to be exceeded before this ACL will match
37 char pattern
[256]; // pattern from config file. Used to generate 'data'
41 #endif /* SQUID_ACL_RANDOM_H */