#include <flag_parser.h>
◆ FlagProcessResult
Enumerator |
---|
kFlagSkip | |
kFlagConsumed | |
kFlagConsumedWithFollowing | |
kFlagConsumedOnlyFollowing | |
◆ Alias() [1/2]
◆ Alias() [2/2]
◆ Getter() [1/2]
Flag & cuttlefish::Flag::Getter |
( |
std::function< std::string()> |
fn | ) |
& |
◆ Getter() [2/2]
Flag cuttlefish::Flag::Getter |
( |
std::function< std::string()> |
fn | ) |
&& |
◆ HasAlias()
bool cuttlefish::Flag::HasAlias |
( |
const FlagAlias & |
test | ) |
const |
|
private |
◆ Help() [1/2]
Flag & cuttlefish::Flag::Help |
( |
const std::string & |
help | ) |
& |
◆ Help() [2/2]
Flag cuttlefish::Flag::Help |
( |
const std::string & |
help | ) |
&& |
◆ Parse() [1/2]
Result< void > cuttlefish::Flag::Parse |
( |
std::vector< std::string > && |
arguments | ) |
const |
◆ Parse() [2/2]
Result< void > cuttlefish::Flag::Parse |
( |
std::vector< std::string > & |
arguments | ) |
const |
◆ Process()
Result< Flag::FlagProcessResult > cuttlefish::Flag::Process |
( |
const std::string & |
argument, |
|
|
const std::optional< std::string > & |
next_arg |
|
) |
| const |
|
private |
◆ Setter() [1/2]
◆ Setter() [2/2]
◆ UnvalidatedAlias() [1/2]
Flag & cuttlefish::Flag::UnvalidatedAlias |
( |
const FlagAlias & |
alias | ) |
& |
|
private |
◆ UnvalidatedAlias() [2/2]
Flag cuttlefish::Flag::UnvalidatedAlias |
( |
const FlagAlias & |
alias | ) |
&& |
|
private |
◆ ValidateAlias()
void cuttlefish::Flag::ValidateAlias |
( |
const FlagAlias & |
alias | ) |
|
|
private |
◆ WriteGflagsCompatXml()
bool cuttlefish::Flag::WriteGflagsCompatXml |
( |
std::ostream & |
out | ) |
const |
◆ ConsumeFlagsConstrained
Result< void > ConsumeFlagsConstrained |
( |
const std::vector< Flag > & |
flags, |
|
|
std::vector< std::string > & |
|
|
) |
| |
|
friend |
◆ InvalidFlagGuard
Flag InvalidFlagGuard |
( |
| ) |
|
|
friend |
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & |
, |
|
|
const Flag & |
|
|
) |
| |
|
friend |
◆ UnexpectedArgumentGuard
Flag UnexpectedArgumentGuard |
( |
| ) |
|
|
friend |
◆ aliases_
std::vector<FlagAlias> cuttlefish::Flag::aliases_ |
|
private |
◆ getter_
std::optional<std::function<std::string()> > cuttlefish::Flag::getter_ |
|
private |
◆ help_
std::optional<std::string> cuttlefish::Flag::help_ |
|
private |
◆ setter_
std::optional<std::function<Result<void>(const FlagMatch&)> > cuttlefish::Flag::setter_ |
|
private |
The documentation for this class was generated from the following files: