A single option supported by an ACL: -x[=value] or –name[=value].
More...
#include <Options.h>
|
| | Option (const char *nameThatEnables, const char *nameThatDisables=nullptr, ValueExpectation vex=valueNone) |
| |
| virtual | ~Option () |
| |
| virtual bool | configured () const =0 |
| |
| virtual void | enable () const =0 |
| | called after parsing onName without a value (e.g., -x or –enable-x)
|
| |
| virtual void | configureWith (const SBuf &rawValue) const =0 |
| | called after parsing onName and a value (e.g., -x=v or –enable-x=v)
|
| |
| virtual void | disable () const =0 |
| | called after parsing offName (e.g., +i or –disable-x)
|
| |
| virtual void | unconfigure () const =0 |
| | clear enable(), configureWith(), or disable() effects
|
| |
| virtual bool | disabled () const =0 |
| | whether disable() has been called
|
| |
| virtual bool | valued () const =0 |
| |
| virtual void | print (std::ostream &os) const =0 |
| | prints a configuration snippet (as an admin could have typed)
|
| |
Definition at line 56 of file Options.h.
◆ ValueExpectation
| Enumerator |
|---|
| valueNone | |
| valueOptional | |
| valueRequired | |
Definition at line 59 of file Options.h.
◆ Option()
| Acl::Option::Option |
( |
const char * |
nameThatEnables, |
|
|
const char * |
nameThatDisables = nullptr, |
|
|
ValueExpectation |
vex = valueNone |
|
) |
| |
|
explicit |
◆ ~Option()
| virtual Acl::Option::~Option |
( |
| ) |
|
|
inlinevirtual |
◆ configured()
| virtual bool Acl::Option::configured |
( |
| ) |
const |
|
pure virtual |
◆ configureWith()
| virtual void Acl::Option::configureWith |
( |
const SBuf & |
rawValue | ) |
const |
|
pure virtual |
◆ disable()
| virtual void Acl::Option::disable |
( |
| ) |
const |
|
pure virtual |
◆ disabled()
| virtual bool Acl::Option::disabled |
( |
| ) |
const |
|
pure virtual |
◆ enable()
| virtual void Acl::Option::enable |
( |
| ) |
const |
|
pure virtual |
◆ print()
| virtual void Acl::Option::print |
( |
std::ostream & |
os | ) |
const |
|
pure virtual |
◆ unconfigure()
| virtual void Acl::Option::unconfigure |
( |
| ) |
const |
|
pure virtual |
◆ valued()
| virtual bool Acl::Option::valued |
( |
| ) |
const |
|
pure virtual |
◆ offName
| const char* const Acl::Option::offName = nullptr |
◆ onName
| const char* const Acl::Option::onName = nullptr |
◆ valueExpectation
The documentation for this class was generated from the following files: