Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
clara::detail::ParserBase Class Referenceabstract

#include <clara.hpp>

Inheritance diagram for clara::detail::ParserBase:

Public Member Functions

virtual ~ParserBase ()=default
 
virtual auto validate () const -> Result
 
virtual auto parse (std::string const &exeName, TokenStream const &tokens) const -> InternalParseResult=0
 
virtual auto cardinality () const -> size_t
 
auto parse (Args const &args) const -> InternalParseResult
 

Detailed Description

Definition at line 809 of file clara.hpp.

Constructor & Destructor Documentation

◆ ~ParserBase()

virtual clara::detail::ParserBase::~ParserBase ( )
virtualdefault

Member Function Documentation

◆ cardinality()

virtual auto clara::detail::ParserBase::cardinality ( ) const -> size_t
inlinevirtual

◆ parse() [1/2]

auto clara::detail::ParserBase::parse ( Args const & args) const -> InternalParseResult
inline

Definition at line 816 of file clara.hpp.

816 {
817 return parse( args.exeName(), TokenStream( args ) );
818 }
virtual auto parse(std::string const &exeName, TokenStream const &tokens) const -> InternalParseResult=0
Here is the call graph for this function:

◆ parse() [2/2]

virtual auto clara::detail::ParserBase::parse ( std::string const & exeName,
TokenStream const & tokens ) const -> InternalParseResult
pure virtual

Implemented in clara::detail::Arg, clara::detail::ExeName, clara::detail::Opt, and clara::detail::Parser.

Here is the caller graph for this function:

◆ validate()

virtual auto clara::detail::ParserBase::validate ( ) const -> Result
inlinevirtual

Reimplemented in clara::detail::Opt, and clara::detail::Parser.

Definition at line 812 of file clara.hpp.

812{ return Result::ok(); }
static auto ok() -> BasicResult
Definition clara.hpp:593
Here is the call graph for this function:
Here is the caller graph for this function:

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