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"
16 class ACLRandom
: public ACL
20 MEMPROXY_CLASS(ACLRandom
);
22 ACLRandom(char const *);
23 ACLRandom(ACLRandom
const &);
25 ACLRandom
&operator=(ACLRandom
const &);
27 virtual ACL
*clone()const;
28 virtual char const *typeString() const;
30 virtual int match(ACLChecklist
*checklist
);
31 virtual SBufList
dump() const;
32 virtual bool empty () const;
33 virtual bool valid() const;
36 static Prototype RegistryProtoype
;
37 static ACLRandom RegistryEntry_
;
38 double data
; // value to be exceeded before this ACL will match
39 char pattern
[256]; // pattern from config file. Used to generate 'data'
43 MEMPROXY_CLASS_INLINE(ACLRandom
);
45 #endif /* SQUID_ACL_RANDOM_H */