3.0.0
|
|
Freundlich's C++ toolkit |
A required switch.
This parser is similar to fcppt::options::switch_ but it requires its switch to be specified.
Public Types | |
typedef fcppt::record::variadic< fcppt::record::element< Label, fcppt::unit > > | result_type |
Public Member Functions | |
unit_switch (fcppt::options::optional_short_name &&short_name, fcppt::options::long_name &&long_name) | |
Constructs a switch parser. More... | |
fcppt::options::parse_result< result_type > | parse (fcppt::options::state &&, fcppt::options::parse_context const &) const |
fcppt::options::flag_name_set | flag_names () const |
fcppt::options::option_name_set | option_names () const |
fcppt::string | usage () const |
fcppt::options::optional_short_name const & | short_name () const |
fcppt::options::long_name const & | long_name () const |
typedef fcppt::record::variadic< fcppt::record::element< Label, fcppt::unit > > fcppt::options::unit_switch< Label >::result_type |
fcppt::options::unit_switch< Label >::unit_switch | ( | fcppt::options::optional_short_name && | short_name, |
fcppt::options::long_name && | long_name | ||
) |
Constructs a switch parser.
short_name | An optional short name ("-f") this parser will match. |
long_name | The long name ("--flag") this parser will match. |
fcppt::options::flag_name_set fcppt::options::unit_switch< Label >::flag_names | ( | ) | const |
fcppt::options::long_name const& fcppt::options::unit_switch< Label >::long_name | ( | ) | const |
fcppt::options::option_name_set fcppt::options::unit_switch< Label >::option_names | ( | ) | const |
fcppt::options::parse_result< result_type > fcppt::options::unit_switch< Label >::parse | ( | fcppt::options::state && | , |
fcppt::options::parse_context const & | |||
) | const |
fcppt::options::optional_short_name const& fcppt::options::unit_switch< Label >::short_name | ( | ) | const |
fcppt::string fcppt::options::unit_switch< Label >::usage | ( | ) | const |