~yadi/squid/connection-manager

« back to all changes in this revision

Viewing changes to src/auth/AclMaxUserIp.cc

  • Committer: Amos Jeffries
  • Date: 2014-01-19 05:45:51 UTC
  • mfrom: (13045.1.209 trunk)
  • Revision ID: squid3@treenet.co.nz-20140119054551-3u1so2dy5vda7kfw
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
#include "Parsing.h"
14
14
#include "wordlist.h"
15
15
 
16
 
ACLFlag
17
 
ACLMaxUserIP::SupportedFlags[] = {ACL_F_STRICT, ACL_F_END};
 
16
ACLFlag ACLMaxUserIP::SupportedFlags[] = {ACL_F_STRICT, ACL_F_END};
 
17
 
 
18
ACLMaxUserIP::ACLMaxUserIP(char const *theClass) :
 
19
        ACL(SupportedFlags),
 
20
        class_(theClass),
 
21
        maximum(0)
 
22
{}
 
23
 
 
24
ACLMaxUserIP::ACLMaxUserIP(ACLMaxUserIP const &old) :
 
25
        class_(old.class_),
 
26
        maximum(old.maximum)
 
27
{
 
28
   flags = old.flags;
 
29
}
 
30
 
 
31
ACLMaxUserIP::~ACLMaxUserIP()
 
32
{}
18
33
 
19
34
ACL *
20
35
ACLMaxUserIP::clone() const
22
37
    return new ACLMaxUserIP(*this);
23
38
}
24
39
 
25
 
ACLMaxUserIP::ACLMaxUserIP (char const *theClass) : ACL(SupportedFlags), class_ (theClass), maximum(0)
26
 
{}
27
 
 
28
 
ACLMaxUserIP::ACLMaxUserIP (ACLMaxUserIP const & old) : class_ (old.class_), maximum (old.maximum)
29
 
{
30
 
   flags = old.flags;
31
 
}
32
 
 
33
 
ACLMaxUserIP::~ACLMaxUserIP()
34
 
{}
35
 
 
36
40
char const *
37
41
ACLMaxUserIP::typeString() const
38
42
{
40
44
}
41
45
 
42
46
bool
43
 
ACLMaxUserIP::empty () const
 
47
ACLMaxUserIP::empty() const
44
48
{
45
49
    return false;
46
50
}
47
51
 
48
52
bool
49
 
ACLMaxUserIP::valid () const
 
53
ACLMaxUserIP::valid() const
50
54
{
51
55
    return maximum > 0;
52
56
}