3.6.0
Freundlich's C++ toolkit
Public Types | Public Member Functions
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 = fcppt::record::object< fcppt::record::element< Tag, fcppt::options::result_of< Parser > > >
 

Public Member Functions

 sub_command (fcppt::string &&, Parser &&, fcppt::options::optional_help_text &&)
 
const fcppt::stringname () const
 
const Parser & parser () const
 
const fcppt::options::optional_help_texthelp_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 = fcppt::record::object< fcppt::record::element< Tag, fcppt::options::result_of< Parser > > >

◆ 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 >
const fcppt::options::optional_help_text& fcppt::options::sub_command< Tag, Parser >::help_text ( ) const

◆ name()

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

◆ parser()

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