Options.cc
Go to the documentation of this file.
66 Acl::Option::Option(const char * const nameThatEnables, const char * const nameThatDisables, const ValueExpectation vex):
a type-specific Option (e.g., a boolean –toggle or -m=SBuf)
Definition: Options.h:129
parses/validates/stores ACL options; skips/preserves parameter flags
Definition: Options.cc:47
#define TexcHere(msg)
legacy convenience macro; it is not difficult to type Here() now
Definition: TextException.h:63
bool advance()
extracts a token with the next option/flag(s) or returns false
Definition: Options.cc:117
std::pair< const Option *, bool > SupportedOption
Definition: Options.cc:56
A single option supported by an ACL: -x[=value] or –name[=value].
Definition: Options.h:56
static bool NextKvPair(char *&key, char *&value)
Definition: ConfigParser.cc:448
const char *const onName
A name that must be used to explicitly enable this Option (required).
Definition: Options.h:88
void extractShort()
handles one flag letter inside an -xyx[=option] or +xyz[=option] sequence
Definition: Options.cc:154
int cmp(const SBuf &S, const size_type n) const
shorthand version for compare()
Definition: SBuf.h:279
low-level parser that extracts but does not interpret ACL options
Definition: Options.cc:22
SBuf ToSBuf(Args &&... args)
slowly stream-prints all arguments into a freshly allocated SBuf
Definition: Stream.h:63
Option(const char *nameThatEnables, const char *nameThatDisables=nullptr, ValueExpectation vex=valueNone)
Definition: Options.cc:66
virtual void print(std::ostream &os) const =0
prints a configuration snippet (as an admin could have typed)
SupportedOption supportedOption(const SBuf &name) const
Definition: Options.cc:176
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products