3.0.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

typedef Tag tag
 
typedef fcppt::record::variadic< fcppt::record::element< Tag, fcppt::options::result_of< Parser > > > result_type
 

Public Member Functions

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

Member Typedef Documentation

◆ result_type

template<typename Tag , typename Parser >
typedef fcppt::record::variadic< fcppt::record::element< Tag, fcppt::options::result_of< Parser > > > fcppt::options::sub_command< Tag, Parser >::result_type

◆ tag

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

Constructor & Destructor Documentation

◆ sub_command() [1/3]

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

◆ sub_command() [2/3]

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

◆ sub_command() [3/3]

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

◆ ~sub_command()

template<typename Tag , typename Parser >
fcppt::options::sub_command< Tag, Parser >::~sub_command ( )

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

◆ name()

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

template<typename Tag , typename Parser >
sub_command& fcppt::options::sub_command< Tag, Parser >::operator= ( sub_command< Tag, Parser > &&  )

◆ parser()

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