4.6.0
Freundlich's C++ toolkit
|
The base class for parsers with a given result type.
This class serves as a base class for a concrete parser using Result as its result type. Hiding a concrete parser implementation is not necessary, but it can reduce compile times, and it hides the concrete (permuted) result type.
Result | The result type of the parser. Must be an fcppt::record::object. |
Public Types | |
using | result_type = Result |
Public Member Functions | |
virtual | ~base ()=0 |
virtual fcppt::options::parse_result< result_type > | parse (fcppt::options::state &&, fcppt::options::parse_context const &) const =0 |
virtual fcppt::options::flag_name_set | flag_names () const =0 |
virtual fcppt::options::option_name_set | option_names () const =0 |
virtual fcppt::options::usage | usage () const =0 |
Protected Member Functions | |
base () | |
using fcppt::options::base< Result >::result_type = Result |
|
protected |
|
pure virtual |
|
nodiscardpure virtual |
|
nodiscardpure virtual |
|
nodiscardpure virtual |
|
nodiscardpure virtual |