dxd - dynax driver framework 2.2.0d81
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::test::parser Class Reference

cmd line parser More...

#include <dx_test.h>

+ Inheritance diagram for dx::test::parser:
+ Collaboration diagram for dx::test::parser:

Classes

struct  dispatch
 

Public Types

typedef std::deque< std::string > args
 

Public Member Functions

 catch (...)
 
 catch (const dx::exception &__dx_exception)
 
 catch (const std::exception &__std_exception)
 
virtual bool head () const noexcept
 
virtual void help (args &args)
 
void operator<< (args &args) try
 
void operator<< (const args &args)
 
 parser (const std::map< std::deque< std::string >, dispatch > &dictionary={})
 
virtual void quiet (const args &={}) noexcept
 
virtual void version (const args &={}) noexcept
 
virtual ~parser ()=default
 

Public Attributes

std::map< std::deque< std::string >, dispatchdictionary
 

Protected Attributes

struct { 
 
   bool   quiet = false 
 
parameter 
 

Detailed Description

cmd line parser

Member Typedef Documentation

◆ args

typedef std::deque<std::string> dx::test::parser::args

Constructor & Destructor Documentation

◆ parser()

dx::test::parser::parser ( const std::map< std::deque< std::string >, dispatch > & dictionary = {})
inline

◆ ~parser()

virtual dx::test::parser::~parser ( )
virtualdefault

Member Function Documentation

◆ catch() [1/3]

dx::test::parser::catch ( ...)
inline

◆ catch() [2/3]

dx::test::parser::catch ( const dx::exception & __dx_exception)
inline

◆ 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 >.

+ Here is the caller graph for this function:

◆ 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

Member Data Documentation

◆ 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:

(c) copyright 2009 dynamic acoustics e.U. generated on Fri Dec 20 2024

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.