|
|
| MapPositional (Group &group_, const std::string &name_, const std::string &help_, const Map< K, T > &map_, const T &defaultValue_=T(), Options options_={}) |
| |
| virtual void | ParseValue (const std::string &value_) override |
| |
|
T & | Get () noexcept |
| | Get the value.
|
| |
|
T & | operator* () noexcept |
| | Get the value.
|
| |
|
const T & | operator* () const noexcept |
| | Get the value.
|
| |
|
T * | operator-> () noexcept |
| | Get the value.
|
| |
|
const T * | operator-> () const noexcept |
| | Get the value.
|
| |
| virtual void | Reset () noexcept override |
| |
|
| PositionalBase (const std::string &name_, const std::string &help_, Options options_={}) |
| |
|
bool | Ready () |
| |
| virtual PositionalBase * | GetNextPositional () override |
| |
| virtual bool | HasPositional () const override |
| |
| virtual std::vector< std::string > | GetProgramLine (const HelpParams ¶ms) const override |
| |
| virtual void | Validate (const std::string &, const std::string &) const override |
| |
|
| NamedBase (const std::string &name_, const std::string &help_, Options options_={}) |
| |
| void | HelpDefault (const std::string &str) |
| | Sets default value string that will be added to argument description.
|
| |
|
std::string | HelpDefault (const HelpParams ¶ms) const |
| | Gets default value string that will be added to argument description.
|
| |
| void | HelpChoices (const std::vector< std::string > &array) |
| | Sets choices strings that will be added to argument description.
|
| |
|
std::vector< std::string > | HelpChoices (const HelpParams ¶ms) const |
| | Gets choices strings that will be added to argument description.
|
| |
| virtual std::vector< std::tuple< std::string, std::string, unsigned > > | GetDescription (const HelpParams ¶ms, const unsigned indentLevel) const override |
| |
|
virtual std::string | Name () const |
| |
|
| Base (const std::string &help_, Options options_={}) |
| |
|
Options | GetOptions () const noexcept |
| |
|
bool | IsRequired () const noexcept |
| |
| virtual bool | Matched () const noexcept |
| |
|
| operator bool () const noexcept |
| |
|
virtual std::vector< Command * > | GetCommands () |
| |
|
virtual bool | IsGroup () const |
| |
| virtual FlagBase * | Match (const EitherFlag &) |
| |
|
virtual std::vector< FlagBase * > | GetAllFlags () |
| |
| virtual bool | HasFlag () const |
| |
| virtual bool | HasCommand () const |
| |
|
void | KickOut (bool kickout_) noexcept |
| | Sets a kick-out value for building subparsers.
|
| |
|
bool | KickOut () const noexcept |
| | Gets the kick-out value for building subparsers.
|
| |
template<typename K, typename T, typename Reader = ValueReader, template< typename... > class Map = detail::unordered_map>
class args::MapPositional< K, T, Reader, Map >
A positional argument mapping class.
- Template Parameters
-
| K | the type to extract the argument as |
| T | the type to store the result as |
| Reader | The functor type used to read the argument, taking the name, value, and destination reference with operator(), and returning a bool (if ARGS_NOEXCEPT is defined) |
| Map | The Map type. Should operate like std::map or std::unordered_map |