4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
fcppt::options::sub_command< Tag, Parser > Class Template Reference

Detailed Description

template<typename Tag, typename Parser>
class fcppt::options::sub_command< Tag, Parser >

A sub command consists of a command name and a parser.

Public Types

using tag = Tag
 
using parser_type = Parser
 
using result_type
 

Public Member Functions

 sub_command (fcppt::string &&, Parser &&, fcppt::options::optional_help_text &&)
 
fcppt::string const & name () const
 
Parser const & parser () const
 
fcppt::options::optional_help_text const & help_text () const
 

Member Typedef Documentation

◆ parser_type

template<typename Tag , typename Parser >
using fcppt::options::sub_command< Tag, Parser >::parser_type = Parser

◆ result_type

template<typename Tag , typename Parser >
using fcppt::options::sub_command< Tag, Parser >::result_type

◆ tag

template<typename Tag , typename Parser >
using fcppt::options::sub_command< Tag, Parser >::tag = Tag

Constructor & Destructor Documentation

◆ sub_command()

template<typename Tag , typename Parser >
fcppt::options::sub_command< Tag, Parser >::sub_command ( fcppt::string && ,
Parser && ,
fcppt::options::optional_help_text &&  )

Member Function Documentation

◆ help_text()

template<typename Tag , typename Parser >
fcppt::options::optional_help_text const & fcppt::options::sub_command< Tag, Parser >::help_text ( ) const
nodiscard

◆ name()

template<typename Tag , typename Parser >
fcppt::string const & fcppt::options::sub_command< Tag, Parser >::name ( ) const
nodiscard

◆ parser()

template<typename Tag , typename Parser >
Parser const & fcppt::options::sub_command< Tag, Parser >::parser ( ) const
nodiscard