a type-specific Option (e.g., a boolean –toggle or -m=SBuf) More...
#include <Options.h>
![Inheritance graph](classAcl_1_1TypedOption__inherit__graph.png)
![Collaboration graph](classAcl_1_1TypedOption__coll__graph.png)
Public Types | |
enum | ValueExpectation { valueNone, valueOptional, valueRequired } |
Public Member Functions | |
TypedOption (const char *nameThatEnables, const char *nameThatDisables=nullptr, ValueExpectation vex=valueNone) | |
void | linkWith (Recipient *recipient) const |
who to tell when this option is enabled More... | |
bool | configured () const override |
bool | disabled () const override |
whether disable() has been called More... | |
bool | valued () const override |
void | unconfigure () const override |
clear enable(), configureWith(), or disable() effects More... | |
void | enable () const override |
called after parsing onName without a value (e.g., -x or –enable-x) More... | |
void | configureWith (const SBuf &rawValue) const override |
called after parsing onName and a value (e.g., -x=v or –enable-x=v) More... | |
void | disable () const override |
called after parsing offName (e.g., +i or –disable-x) More... | |
void | print (std::ostream &os) const override |
prints a configuration snippet (as an admin could have typed) More... | |
Public Attributes | |
const char *const | onName = nullptr |
A name that must be used to explicitly enable this Option (required). More... | |
const char *const | offName = nullptr |
ValueExpectation | valueExpectation = valueNone |
expect "=value" part? More... | |
Private Member Functions | |
void | import (const SBuf &rawValue) const |
void | printValue (std::ostream &os) const |
void | import (const SBuf &rawValue) const |
void | printValue (std::ostream &os) const |
Private Attributes | |
Recipient * | recipient_ = nullptr |
parsing results storage More... | |
Detailed Description
template<class Recipient>
class Acl::TypedOption< Recipient >
Member Enumeration Documentation
◆ ValueExpectation
|
inherited |
Constructor & Destructor Documentation
◆ TypedOption()
|
inlineexplicit |
Member Function Documentation
◆ configured()
|
inlineoverridevirtual |
whether the admin explicitly specified this option (i.e., whether enable(), configureWith(), or disable() has been called)
Implements Acl::Option.
Definition at line 145 of file Options.h.
Referenced by Acl::TypedOption< CharacterSetOptionValue >::print().
◆ configureWith()
|
inlineoverridevirtual |
Implements Acl::Option.
◆ disable()
|
inlineoverridevirtual |
Implements Acl::Option.
◆ disabled()
|
inlineoverridevirtual |
Implements Acl::Option.
Definition at line 146 of file Options.h.
Referenced by Acl::TypedOption< CharacterSetOptionValue >::print().
◆ enable()
|
inlineoverridevirtual |
Implements Acl::Option.
◆ import() [1/2]
|
inlineprivate |
Definition at line 25 of file CharacterSetOption.h.
◆ import() [2/2]
|
inlineprivate |
◆ linkWith()
|
inline |
Definition at line 137 of file Options.h.
Referenced by ACLDestinationIP::options(), ACLMaxUserIP::options(), Acl::AnnotationCheck::options(), Acl::DestinationDomainCheck::options(), and Acl::ServerNameCheck::options().
◆ print()
|
inlineoverridevirtual |
Implements Acl::Option.
◆ printValue() [1/2]
|
inlineprivate |
Definition at line 33 of file CharacterSetOption.h.
◆ printValue() [2/2]
|
inlineprivate |
Definition at line 195 of file Options.h.
Referenced by Acl::TypedOption< CharacterSetOptionValue >::print().
◆ unconfigure()
|
inlineoverridevirtual |
Implements Acl::Option.
◆ valued()
|
inlineoverridevirtual |
Implements Acl::Option.
Definition at line 147 of file Options.h.
Referenced by Acl::TypedOption< CharacterSetOptionValue >::print().
Member Data Documentation
◆ offName
|
inherited |
A name that must be used to explicitly disable this Option (optional). Nil for (and only for) options that cannot be disabled().
Definition at line 92 of file Options.h.
Referenced by Acl::TypedOption< CharacterSetOptionValue >::disabled(), and Acl::TypedOption< CharacterSetOptionValue >::print().
◆ onName
|
inherited |
Definition at line 88 of file Options.h.
Referenced by Acl::Option::Option(), and Acl::TypedOption< CharacterSetOptionValue >::print().
◆ recipient_
|
mutableprivate |
Definition at line 199 of file Options.h.
Referenced by Acl::TypedOption< CharacterSetOptionValue >::configured(), Acl::TypedOption< CharacterSetOptionValue >::configureWith(), Acl::TypedOption< CharacterSetOptionValue >::disable(), Acl::TypedOption< CharacterSetOptionValue >::disabled(), Acl::TypedOption< CharacterSetOptionValue >::enable(), Acl::TypedOption< CharacterSetOptionValue >::import(), Acl::TypedOption< CharacterSetOptionValue >::linkWith(), Acl::TypedOption< CharacterSetOptionValue >::printValue(), Acl::TypedOption< CharacterSetOptionValue >::unconfigure(), and Acl::TypedOption< CharacterSetOptionValue >::valued().
◆ valueExpectation
|
inherited |
The documentation for this class was generated from the following file:
- src/acl/Options.h
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