/*
 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
 *
 * Squid software is distributed under GPLv2+ license and includes
 * contributions from numerous individuals and organizations.
 * Please see the COPYING and CONTRIBUTORS files for details.
 */

#ifndef SQUID_ACLREGEXDATA_H
#define SQUID_ACLREGEXDATA_H

#include "acl/Data.h"
#include "MemPool.h"

class RegexList;

class ACLRegexData : public ACLData<char const *>
{

public:
    MEMPROXY_CLASS(ACLRegexData);

    virtual ~ACLRegexData();
    virtual bool match(char const *user);
    virtual SBufList dump() const;
    virtual void parse();
    virtual bool empty() const;
    virtual ACLData<char const *> *clone() const;

private:
    RegexList *data;
};

MEMPROXY_CLASS_INLINE(ACLRegexData);

#endif /* SQUID_ACLREGEXDATA_H */
