|
Squid Web Cache master
|
option value to configure one or more characters (e.g., -m=",;") More...
#include <CharacterSetOption.h>
Public Types | |
| typedef TypedOption< CharacterSetOptionValue > | Parent |
| enum | ValueExpectation { valueNone , valueOptional , valueRequired } |
Public Member Functions | |
| CharacterSetOption (const char *name) | |
| void | linkWith (CharacterSetOptionValue *recipient) const |
| who to tell when this option is enabled | |
| bool | configured () const override |
| bool | disabled () const override |
| whether disable() has been called | |
| bool | valued () const override |
| void | unconfigure () const override |
| clear enable(), configureWith(), or disable() effects | |
| void | enable () const override |
| called after parsing onName without a value (e.g., -x or –enable-x) | |
| void | configureWith (const SBuf &rawValue) const override |
| called after parsing onName and a value (e.g., -x=v or –enable-x=v) | |
| void | disable () const override |
| called after parsing offName (e.g., +i or –disable-x) | |
| void | print (std::ostream &os) const override |
| prints a configuration snippet (as an admin could have typed) | |
Public Attributes | |
| const char *const | onName = nullptr |
| A name that must be used to explicitly enable this Option (required). | |
| const char *const | offName = nullptr |
| ValueExpectation | valueExpectation = valueNone |
| expect "=value" part? | |
Private Member Functions | |
| void | import (const SBuf &rawValue) const |
| void | import (const SBuf &rawValue) const |
| void | printValue (std::ostream &os) const |
| void | printValue (std::ostream &os) const |
Private Attributes | |
| CharacterSetOptionValue * | recipient_ |
| parsing results storage | |
Definition at line 39 of file CharacterSetOption.h.
Definition at line 42 of file CharacterSetOption.h.
|
inherited |
|
inlineexplicit |
Definition at line 43 of file CharacterSetOption.h.
|
inlineoverridevirtualinherited |
whether the admin explicitly specified this option (i.e., whether enable(), configureWith(), or disable() has been called)
Implements Acl::Option.
|
inlineoverridevirtualinherited |
Implements Acl::Option.
|
inlineoverridevirtualinherited |
Implements Acl::Option.
|
inlineoverridevirtualinherited |
Implements Acl::Option.
|
inlineoverridevirtualinherited |
Implements Acl::Option.
|
inlineprivateinherited |
Definition at line 25 of file CharacterSetOption.h.
|
inlineprivateinherited |
|
inlineinherited |
|
inlineoverridevirtualinherited |
Implements Acl::Option.
|
inlineprivateinherited |
Definition at line 33 of file CharacterSetOption.h.
|
inlineprivateinherited |
|
inlineoverridevirtualinherited |
Implements Acl::Option.
|
inlineoverridevirtualinherited |
Implements Acl::Option.
|
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< Recipient >::disabled(), and Acl::TypedOption< Recipient >::print().
|
inherited |
Definition at line 88 of file Options.h.
Referenced by Acl::Option::Option(), and Acl::TypedOption< Recipient >::print().
|
mutableprivateinherited |
|
inherited |