Options.cc
Go to the documentation of this file.
66Acl::Option::Option(const char * const nameThatEnables, const char * const nameThatDisables, const ValueExpectation vex):
220 throw TexcHere(ToSBuf("unexpected value when disabling an ACL option: ", oex.name, '=', oex.value()));
247std::ostream &
254std::ostream &
#define TexcHere(msg)
legacy convenience macro; it is not difficult to type Here() now
Definition: TextException.h:63
low-level parser that extracts but does not interpret ACL options
Definition: Options.cc:23
bool advance()
extracts a token with the next option/flag(s) or returns false
Definition: Options.cc:117
void extractShort()
handles one flag letter inside an -xyx[=option] or +xyz[=option] sequence
Definition: Options.cc:154
A single option supported by an ACL: -x[=value] or –name[=value].
Definition: Options.h:57
const char *const onName
A name that must be used to explicitly enable this Option (required).
Definition: Options.h:88
virtual void print(std::ostream &os) const =0
prints a configuration snippet (as an admin could have typed)
Option(const char *nameThatEnables, const char *nameThatDisables=nullptr, ValueExpectation vex=valueNone)
Definition: Options.cc:66
parses/validates/stores ACL options; skips/preserves parameter flags
Definition: Options.cc:48
SupportedOption supportedOption(const SBuf &name) const
Definition: Options.cc:176
std::pair< const Option *, bool > SupportedOption
Definition: Options.cc:56
a type-specific Option (e.g., a boolean –toggle or -m=SBuf)
Definition: Options.h:130
static bool NextKvPair(char *&key, char *&value)
Definition: ConfigParser.cc:448
int cmp(const SBuf &S, const size_type n) const
shorthand version for compare()
Definition: SBuf.h:275
SBuf ToSBuf(Args &&... args)
slowly stream-prints all arguments into a freshly allocated SBuf
Definition: Stream.h:63