arg_router  1.4.0
C++ command line argument parsing and routing
arg_router::arg_t< T, Policies > Class Template Reference

#include <arg_router/arg.hpp>

Inheritance diagram for arg_router::arg_t< T, Policies >:
[legend]

Public Types

using value_type = typename parent_type::value_type
 
template<bool Flatten>
using help_data_type = typename parent_type::template default_leaf_help_data_type< Flatten >
 

Public Member Functions

constexpr arg_t (Policies... policies) noexcept
 

Additional Inherited Members

- Protected Types inherited from arg_router::multi_arg_base_t< T, 1, policy::min_max_count_t< traits::integral_constant< std::size_t{1}>, traits::integral_constant< std::size_t{1}> >, std::decay_t< Policies >... >
using value_type = T
 
using help_data_type = typename parent_type::template default_leaf_help_data_type< Flatten >
 
- Protected Member Functions inherited from arg_router::multi_arg_base_t< T, 1, policy::min_max_count_t< traits::integral_constant< std::size_t{1}>, traits::integral_constant< std::size_t{1}> >, std::decay_t< Policies >... >
constexpr multi_arg_base_t (Policies... policies, std::enable_if_t< has_min_max > *=nullptr) noexcept
 
value_type parse (parsing::parse_target target, const Parents &... parents) const
 

Detailed Description

template<typename T, typename... Policies>
class arg_router::arg_t< T, Policies >

Represents a named argument on the command line that has a value that needs parsing.

Cannot have a none name or display name policy.

Template Parameters
TArgument value type
PoliciesPack of policies that define its behaviour

Definition at line 22 of file arg.hpp.

Member Typedef Documentation

◆ help_data_type

template<typename T , typename... Policies>
template<bool Flatten>
using arg_router::arg_t< T, Policies >::help_data_type = typename parent_type::template default_leaf_help_data_type<Flatten>

Help data type.

Definition at line 48 of file arg.hpp.

◆ value_type

template<typename T , typename... Policies>
using arg_router::arg_t< T, Policies >::value_type = typename parent_type::value_type

Argument value type.

Definition at line 44 of file arg.hpp.

Constructor & Destructor Documentation

◆ arg_t()

template<typename T , typename... Policies>
constexpr arg_router::arg_t< T, Policies >::arg_t ( Policies...  policies)
inlineexplicitconstexprnoexcept

Constructor.

Parameters
policiesPolicy instances

Definition at line 54 of file arg.hpp.


The documentation for this class was generated from the following file: