arg_router
1.4.0
C++ command line argument parsing and routing
|
#include <arg_router/multi_arg_base.hpp>
Inherits add_missing_min_max_policy::type.
Protected Types | |
using | value_type = T |
template<bool Flatten> | |
using | help_data_type = typename parent_type::template default_leaf_help_data_type< Flatten > |
Protected Member Functions | |
template<auto has_min_max = add_missing_min_max_policy<MinCount, Policies...>::has_min_max> | |
constexpr | multi_arg_base_t (Policies... policies, std::enable_if_t< has_min_max > *=nullptr) noexcept |
template<typename... Parents> | |
value_type | parse (parsing::parse_target target, const Parents &... parents) const |
Base class for nodes that support multiple value tokens.
If no policy implementing minimum_count()
and maximum_count()
methods is used (e.g. policy::min_max_count_t), then an unbounded policy::min_max_count_t is prepended to the policies internally.
This is the base class for arg_t, multi_arg_t, and postional_arg_t.
T | Argument value type |
MinCount | Minimum count value to use if one not specified by user |
Policies | Pack of policies that define its behaviour |
Definition at line 25 of file multi_arg_base.hpp.
|
protected |
Help data type.
Definition at line 55 of file multi_arg_base.hpp.
|
protected |
Argument value type.
Definition at line 51 of file multi_arg_base.hpp.
|
inlineexplicitconstexprprotectednoexcept |
|
inlineprotected |
Parse function.
Parents | Pack of parent tree nodes in ascending ancestry order |
target | Parse target |
parents | Parents instances pack |
multi_lang_exception | Thrown if parsing failed |
Definition at line 98 of file multi_arg_base.hpp.