Stores configuration of a typical boolean flag or a single-value Option. More...
#include <Options.h>
Public Types | |
typedef Value | value_type |
Public Member Functions | |
OptionValue () | |
OptionValue (const Value &aValue) | |
bool | enabled () const |
whether the option is explicitly turned "on" (with or without a value) More... | |
operator bool () const | |
void | reset () |
go back to the default-initialized state More... | |
Public Attributes | |
Value | value |
final value storage, possibly after conversions More... | |
bool | configured = false |
whether the option was present in squid.conf More... | |
bool | disabled = false |
whether the option was turned off More... | |
bool | valued = false |
whether a configured option had a value More... | |
Detailed Description
Member Typedef Documentation
◆ value_type
typedef Value Acl::OptionValue< Value >::value_type |
Constructor & Destructor Documentation
◆ OptionValue() [1/2]
|
inline |
◆ OptionValue() [2/2]
|
inlineexplicit |
Member Function Documentation
◆ enabled()
|
inline |
Definition at line 114 of file Options.h.
References Acl::OptionValue< Value >::configured, and Acl::OptionValue< Value >::disabled.
Referenced by Acl::OptionValue< Value >::operator bool().
◆ operator bool()
|
inlineexplicit |
Definition at line 115 of file Options.h.
References Acl::OptionValue< Value >::enabled().
◆ reset()
|
inline |
Member Data Documentation
◆ configured
bool Acl::OptionValue< Value >::configured = false |
Definition at line 121 of file Options.h.
Referenced by Acl::OptionValue< Value >::enabled().
◆ disabled
bool Acl::OptionValue< Value >::disabled = false |
Definition at line 123 of file Options.h.
Referenced by Acl::OptionValue< Value >::enabled().
◆ value
Value Acl::OptionValue< Value >::value |
Definition at line 120 of file Options.h.
Referenced by Acl::AnnotateClientCheck::match(), and Acl::AnnotateTransactionCheck::match().
◆ valued
bool Acl::OptionValue< Value >::valued = false |
The documentation for this class was generated from the following file:
- src/acl/Options.h