cmd line parser
More...
#include <dx_test.h>
|
typedef std::deque< std::string > | args |
|
◆ args
◆ parser()
dx::test::parser::parser |
( |
const std::map< std::deque< std::string >, dispatch > & | dictionary = {} | ) |
|
|
inline |
◆ ~parser()
virtual dx::test::parser::~parser |
( |
| ) |
|
|
virtualdefault |
◆ catch() [1/3]
dx::test::parser::catch |
( |
| ... | ) |
|
|
inline |
◆ catch() [2/3]
◆ catch() [3/3]
dx::test::parser::catch |
( |
const std::exception & | __std_exception | ) |
|
|
inline |
◆ head()
virtual bool dx::test::parser::head |
( |
| ) |
const |
|
inlinevirtualnoexcept |
Reimplemented in dx::test::driver< super_device_t, audio_pin_t, int32_t, dx::test::device< typename audio_pin_t::circular_t, super_device_t >, dx::proxy::driver< dx::test::device< typename audio_pin_t::circular_t, super_device_t > >, dx::stream::engine< dx::test::device< typename audio_pin_t::circular_t, super_device_t >, audio_pin_t, int32_t, typename audio_pin_t::circular_t, dx::proxy::driver< dx::test::device< typename audio_pin_t::circular_t, super_device_t > > > >, dx::test::driver< super_device_t, audio_pin_t, int32_t, dx::test::device< typename audio_pin_t::circular_t, super_device_t >, dx::virtuel::driver< dx::test::device< typename audio_pin_t::circular_t, super_device_t > >, dx::stream::engine< dx::test::device< typename audio_pin_t::circular_t, super_device_t >, audio_pin_t, dx::virtuel::driver< dx::test::device< typename audio_pin_t::circular_t, super_device_t > >, int32_t > >, dx::test::driver< super_device_t, audio_pin_t, int32_t, dx::test::midi::device< typename audio_pin_t::circular_t, super_device_t, typename midi_pin_t::circular_t >, dx::proxy::driver< dx::test::midi::device< typename audio_pin_t::circular_t, super_device_t, typename midi_pin_t::circular_t > >, dx::stream::engine< dx::test::midi::device< typename audio_pin_t::circular_t, super_device_t, typename midi_pin_t::circular_t >, audio_pin_t, dx::proxy::driver< dx::test::midi::device< typename audio_pin_t::circular_t, super_device_t, typename midi_pin_t::circular_t > >, int32_t > >, and dx::test::driver< super_device_t, audio_pin_t, io_t, device_t, driver_t, engine_t >.
◆ help()
virtual void dx::test::parser::help |
( |
args & | args | ) |
|
|
inlinevirtual |
◆ operator<<() [1/2]
void dx::test::parser::operator<< |
( |
args & | args | ) |
|
|
inline |
◆ operator<<() [2/2]
void dx::test::parser::operator<< |
( |
const args & | args | ) |
|
|
inline |
◆ quiet()
virtual void dx::test::parser::quiet |
( |
const args & | = {} | ) |
|
|
inlinevirtualnoexcept |
◆ version()
virtual void dx::test::parser::version |
( |
const args & | = {} | ) |
|
|
inlinevirtualnoexcept |
◆ dictionary
std::map<std::deque<std::string>, dispatch> dx::test::parser::dictionary |
Initial value:{
{{
"--help",
"-h",
"-?"}, {std::bind(&
parser::help,
this, std::placeholders::_1),
"help", [](){std::cout<<
"[argument ...]";},
true}},
{{
"--quiet",
"-q"}, {std::bind(&
parser::quiet,
this, std::placeholders::_1),
"quiet!"}},
{{
"--version",
"-v"}, {std::bind(&
parser::version,
this, std::placeholders::_1),
"display the cmd line test application version"}},
}
virtual void version(const args &={}) noexcept
Definition dx_test.h:152
bool quiet
Definition dx_test.h:112
virtual void help(args &args)
Definition dx_test.h:130
◆ [struct]
struct { ... } dx::test::parser::parameter |
◆ quiet
bool dx::test::parser::quiet = false |
The documentation for this class was generated from the following file: