#include <flag.h>
◆ Style
◆ Flag()
| cuttlefish::Flag::Flag |
( |
std::string |
name, |
|
|
Flag::Style |
style |
|
) |
| |
|
private |
◆ AddValidator() [1/2]
| Flag & cuttlefish::Flag::AddValidator |
( |
std::function< Result< void >()> |
validator | ) |
& |
◆ AddValidator() [2/2]
| Flag cuttlefish::Flag::AddValidator |
( |
std::function< Result< void >()> |
validator | ) |
&& |
◆ Alias() [1/2]
| Flag & cuttlefish::Flag::Alias |
( |
std::string |
alias | ) |
& |
◆ Alias() [2/2]
| Flag cuttlefish::Flag::Alias |
( |
std::string |
alias | ) |
&& |
◆ BoolFlag()
| Flag cuttlefish::Flag::BoolFlag |
( |
std::string |
name | ) |
|
|
static |
◆ CurrentValue()
| std::string cuttlefish::Flag::CurrentValue |
( |
| ) |
const |
◆ Description()
| const std::string & cuttlefish::Flag::Description |
( |
| ) |
const |
◆ Getter() [1/2]
| Flag & cuttlefish::Flag::Getter |
( |
std::function< std::string()> |
getter | ) |
& |
◆ Getter() [2/2]
| Flag cuttlefish::Flag::Getter |
( |
std::function< std::string()> |
getter | ) |
&& |
◆ Help() [1/2]
| Flag & cuttlefish::Flag::Help |
( |
std::string |
help | ) |
& |
◆ Help() [2/2]
| Flag cuttlefish::Flag::Help |
( |
std::string |
help | ) |
&& |
◆ Match()
| Result< size_t > cuttlefish::Flag::Match |
( |
std::string_view |
current_arg, |
|
|
std::span< const std::string > |
following_args |
|
) |
| const |
|
private |
◆ MatchBoolStyleFlag()
| Result< size_t > cuttlefish::Flag::MatchBoolStyleFlag |
( |
std::string_view |
current_arg | ) |
const |
|
private |
◆ MatchStringStyleFlag()
| Result< size_t > cuttlefish::Flag::MatchStringStyleFlag |
( |
std::string_view |
current_arg, |
|
|
std::span< const std::string > |
following_args |
|
) |
| const |
|
private |
◆ Name()
| std::string cuttlefish::Flag::Name |
( |
| ) |
const |
◆ operator<()
| bool cuttlefish::Flag::operator< |
( |
const Flag & |
other | ) |
const |
|
inline |
◆ SetAndValidate()
| Result< void > cuttlefish::Flag::SetAndValidate |
( |
std::string_view |
value | ) |
const |
|
private |
◆ Setter() [1/2]
| Flag & cuttlefish::Flag::Setter |
( |
std::function< Result< void >(std::string_view)> |
setter | ) |
& |
◆ Setter() [2/2]
| Flag cuttlefish::Flag::Setter |
( |
std::function< Result< void >(std::string_view)> |
setter | ) |
&& |
◆ StringFlag()
| Flag cuttlefish::Flag::StringFlag |
( |
std::string |
name | ) |
|
|
static |
◆ Synopsis()
| std::string cuttlefish::Flag::Synopsis |
( |
| ) |
const |
◆ ValidateAlias()
| void cuttlefish::Flag::ValidateAlias |
( |
const std::string & |
alias | ) |
|
|
private |
◆ ValueNameHint() [1/3]
| const std::string & cuttlefish::Flag::ValueNameHint |
( |
| ) |
const |
◆ ValueNameHint() [2/3]
| Flag & cuttlefish::Flag::ValueNameHint |
( |
std::string |
value_name_hint | ) |
& |
◆ ValueNameHint() [3/3]
| Flag cuttlefish::Flag::ValueNameHint |
( |
std::string |
value_name_hint | ) |
&& |
◆ ConsumeFlags
◆ WriteGflagsCompatXml
| void WriteGflagsCompatXml |
( |
const Flag & |
, |
|
|
std::ostream & |
|
|
) |
| |
|
friend |
◆ aliases_
| std::vector<std::string> cuttlefish::Flag::aliases_ |
|
private |
◆ getter_
| std::function<std::string()> cuttlefish::Flag::getter_ = []() { return ""; } |
|
private |
◆ help_
| std::string cuttlefish::Flag::help_ |
|
private |
◆ setter_
| std::function<Result<void>(std::string_view value)> cuttlefish::Flag::setter_ |
|
private |
◆ style_
| Style cuttlefish::Flag::style_ |
|
private |
◆ validators_
| std::vector<std::function<Result<void>()> > cuttlefish::Flag::validators_ |
|
private |
◆ value_name_hint_
| std::string cuttlefish::Flag::value_name_hint_ = "VAL" |
|
private |
The documentation for this class was generated from the following files: