9#ifndef SQUID_SRC_ACL_NODE_H
10#define SQUID_SRC_ACL_NODE_H
31 void *
operator new(
size_t);
32 void operator delete(
void *);
47 void context(
const SBuf &aName,
const char *configuration);
64 virtual bool valid()
const;
75 void dumpWhole(
const char *directiveName, std::ostream &);
#define RefCountable
The locking interface for use on Reference-Counted classes.
parsed "acl aclname ..." directives indexed by aclname
virtual bool isProxyAuth() const
virtual int matchForCache(ACLChecklist *checklist)
virtual const Acl::Options & lineOptions()
bool matches(ACLChecklist *checklist) const
virtual bool requiresReply() const
whether our (i.e. shallow) match() requires checklist to have a reply
int cacheMatchAcl(dlink_list *cache, ACLChecklist *)
void dumpWhole(const char *directiveName, std::ostream &)
virtual bool requiresAle() const
whether our (i.e. shallow) match() requires checklist to have a AccessLogEntry
virtual void prepareForUse()
static void ParseNamed(ConfigParser &, NamedAcls &, const SBuf &name)
parses acl directive parts that follow aclname
void context(const SBuf &aName, const char *configuration)
sets user-specified ACL name and squid.conf context
virtual bool valid() const
virtual void parse()=0
parses node representation in squid.conf; dies on failures
virtual int match(ACLChecklist *checklist)=0
Matches the actual data in checklist against this Acl::Node.
virtual bool empty() const =0
virtual SBufList dump() const =0
virtual bool requiresRequest() const
whether our (i.e. shallow) match() requires checklist to have a request
static void ParseNamedAcl(ConfigParser &, NamedAcls *&)
parses acl directive parts that follow directive name (i.e. "acl")
void parseFlags()
configures Acl::Node options, throwing on configuration errors
virtual const Acl::Options & options()
static Acl::Node * FindByName(const SBuf &)
A configured ACL with a given name or nil.
virtual char const * typeString() const =0
const Options & NoOptions()
std::vector< const Option * > Options
std::list< SBuf > SBufList