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 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... | |
void | print (std::ostream &os) const |
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 | import (const SBuf &rawValue) const |
Private Attributes | |
CharacterSetOptionValue * | recipient_ |
parsing results storage More... | |
Detailed Description
Definition at line 40 of file CharacterSetOption.h.
Member Typedef Documentation
◆ Parent
Definition at line 43 of file CharacterSetOption.h.
Member Enumeration Documentation
◆ ValueExpectation
|
inherited |
Constructor & Destructor Documentation
◆ CharacterSetOption()
|
inlineexplicit |
Definition at line 44 of file CharacterSetOption.h.
Member Function Documentation
◆ configured()
|
inlineoverridevirtualinherited |
whether the admin explicitly specified this option (i.e., whether enable(), configureWith(), or disable() has been called)
Implements Acl::Option.
◆ configureWith()
|
inlineoverridevirtualinherited |
Implements Acl::Option.
◆ disable()
|
inlineoverridevirtualinherited |
Implements Acl::Option.
◆ disabled()
|
inlineoverridevirtualinherited |
Implements Acl::Option.
◆ enable()
|
inlineoverridevirtualinherited |
Implements Acl::Option.
◆ import() [1/2]
|
inlineprivateinherited |
Definition at line 25 of file CharacterSetOption.h.
◆ import() [2/2]
|
inlineprivateinherited |
◆ linkWith()
|
inlineinherited |
◆ print() [1/2]
|
inlinevirtualinherited |
Implements Acl::Option.
Definition at line 34 of file CharacterSetOption.h.
◆ print() [2/2]
|
inlineoverridevirtualinherited |
Implements Acl::Option.
◆ unconfigure()
|
inlineoverridevirtualinherited |
Implements Acl::Option.
◆ valued()
|
inlineoverridevirtualinherited |
Implements Acl::Option.
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< Recipient >::disabled(), and Acl::TypedOption< Recipient >::print().
◆ onName
|
inherited |
Definition at line 88 of file Options.h.
Referenced by Acl::Option::Option(), and Acl::TypedOption< Recipient >::print().
◆ recipient_
|
mutableprivateinherited |
◆ valueExpectation
|
inherited |
The documentation for this class was generated from the following file:
- src/acl/CharacterSetOption.h