#include <dx_parser.h>
|
| typedef std::deque< std::string > | args |
◆ args
◆ select()
template<typename... parsers_t>
template<typename... parser_t>
| dx::select< parsers_t >::select |
( |
const char * | name, |
|
|
parser_t &&... | parser ) |
|
inline |
◆ catch() [1/3]
template<typename... parsers_t>
◆ catch() [2/3]
template<typename... parsers_t>
◆ catch() [3/3]
template<typename... parsers_t>
| dx::select< parsers_t >::catch |
( |
const std::exception & | __std_exception | ) |
|
|
inline |
◆ head()
| virtual bool dx::parser::head |
( |
| ) |
const |
|
inlineprotectedvirtualnoexceptinherited |
Reimplemented in dx::service::parser, dx::test::driver< super_device_t, audio_pin_t, io_t, device_t, driver_t, engine_t >, and dx::test::driver< super_device_t, audio_pin_t, io_t, device_t, driver_t, engine_t >.
◆ help()
| virtual void dx::parser::help |
( |
args & | args | ) |
|
|
inlineprotectedvirtualinherited |
◆ help_head()
| virtual void dx::parser::help_head |
( |
| ) |
const |
|
inlineprotectedvirtualnoexceptinherited |
Reimplemented in dx::test::driver< super_device_t, audio_pin_t, io_t, device_t, driver_t, engine_t >, and dx::test::driver< super_device_t, audio_pin_t, io_t, device_t, driver_t, engine_t >.
◆ help_scope()
template<typename... parsers_t>
| void dx::select< parsers_t >::help_scope |
( |
| ) |
const |
|
inlineoverrideprotectedvirtualnoexcept |
◆ no_args()
| virtual DX_PRAGMA_IGNORE_RETURN_VALUE_END void dx::parser::no_args |
( |
const args & | args | ) |
|
|
inlineprotectedvirtualinherited |
◆ operator<<() [1/2]
| virtual void dx::parser::operator<< |
( |
const args & | args | ) |
|
|
inlinevirtualinherited |
◆ operator<<() [2/2]
template<typename... parsers_t>
◆ parse()
| virtual DX_PRAGMA_IGNORE_RETURN_VALUE_END void dx::parser::parse |
( |
args & | args | ) |
|
|
inlinevirtualinherited |
Reimplemented in dx::test::driver< super_device_t, audio_pin_t, io_t, device_t, driver_t, engine_t >, and dx::test::driver< super_device_t, audio_pin_t, io_t, device_t, driver_t, engine_t >.
◆ select()
| DX_PRAGMA_IGNORE_RETURN_VALUE_END auto dx::parser::select |
( |
const std::string & | id | ) |
|
|
inlineprotectedinherited |
◆ version()
| virtual DX_PRAGMA_IGNORE_RETURN_VALUE_END void dx::parser::version |
( |
const args & | args = {} | ) |
|
|
inlineprotectedvirtualinherited |
◆ dictionary
| std::map<std::deque<std::string>, dispatch> dx::parser::dictionary |
|
protectedinherited |
Initial value:{
{{
"--help",
"-h",
"-?"},{std::bind(&
parser::help,
this, std::placeholders::_1),
"help or detailed help on specific arguments", [
this](){
for(
const auto& verb:
dictionary) std::cout<<
"["<< verb.first.front()<<
"] ";},
true}},
{{"--continue", "--no-error", "--ignore", "--ignore-error"},
}
std::map< std::deque< std::string >, dispatch > dictionary
Definition dx_parser.h:126
const char * name
Definition dx_parser.h:59
virtual void help(args &args) try
Definition dx_parser.h:163
virtual DX_PRAGMA_IGNORE_RETURN_VALUE_END void no_args(const args &args) try
Definition dx_parser.h:197
std::deque< std::string > args
Definition dx_parser.h:55
struct dx::parser::@046247176025362246310022157273031025265032273157 parameter
Definition dx_parser.h:283
◆ [struct]
| struct { ... } dx::parser::error |
◆ ignore
◆ name
| const char* dx::parser::name {} |
|
protectedinherited |
◆ [struct]
| struct { ... } dx::parser::parameter |
◆ quiet
The documentation for this class was generated from the following file: