clipp::parser Class Reference
default command line arguments parser More...
#include <clipp.h>
Classes | |
| class | arg_mapping |
| arg -> parameter mapping More... | |
| class | missing_event |
| references a non-matched, required parameter More... | |
Public Types | |
| using | dfs_traverser = group::depth_first_traverser |
| using | scoped_dfs_traverser = detail::scoped_dfs_traverser |
| using | missing_events = std::vector< missing_event > |
| using | arg_mappings = std::vector< arg_mapping > |
Public Member Functions | |
| parser (const group &root, arg_index offset=0) | |
| initializes parser with a command line interface More... | |
| bool | operator() (const arg_string &arg) |
| processes one command line argument More... | |
| const arg_mappings & | args () const |
| returns range of argument -> parameter mappings More... | |
| missing_events | missed () const |
| returns list of missing events More... | |
| arg_index | parse_count () const noexcept |
| returns number of processed command line arguments More... | |
| bool | valid () const noexcept |
| returns false if previously processed command line arguments lead to an invalid / inconsistent parsing result More... | |
| operator bool () const noexcept | |
| returns false if previously processed command line arguments lead to an invalid / inconsistent parsing result More... | |
Detailed Description
Member Typedef Documentation
◆ arg_mappings
| using clipp::parser::arg_mappings = std::vector<arg_mapping> |
◆ dfs_traverser
◆ missing_events
| using clipp::parser::missing_events = std::vector<missing_event> |
◆ scoped_dfs_traverser
Constructor & Destructor Documentation
◆ parser()
Member Function Documentation
◆ args()
|
inline |
◆ missed()
|
inline |
◆ operator bool()
|
inlineexplicitnoexcept |
◆ operator()()
|
inline |
◆ parse_count()
|
inlinenoexcept |
◆ valid()
|
inlinenoexcept |
The documentation for this class was generated from the following file:
1.8.18