dxd - dynax driver framework 2.6.0d205
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::test::device< super_device_t > Class Template Reference

#include <dx_test_device.h>

Inheritance diagram for dx::test::device< super_device_t >:
Collaboration diagram for dx::test::device< super_device_t >:

Classes

struct  has_license
struct  has_license< type_t, decltype((void) type_t::license, void())>

Public Types

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

Public Member Functions

template<typename ... initializer_t>
 device (decltype(super::driver)&driver, const decltype(super::id)&id, initializer_t... initializer)
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN virtual DX_PRAGMA_IGNORE_RETURN_VALUE_END void operator<< (args &args) try
virtual void operator<< (const args &args)
virtual DX_PRAGMA_IGNORE_RETURN_VALUE_END void parse (args &args)
virtual void quiet (const args &={}) noexcept

Protected Member Functions

void _clocksource (const args &args={}) try
DX_PRAGMA_IGNORE_RETURN_VALUE_END void _info (const args &) try
 list device information
DX_PRAGMA_IGNORE_RETURN_VALUE_END void _iosize (const args &args) try
 set/get I/O streaming block size
DX_PRAGMA_IGNORE_RETURN_VALUE_END void _license (const args &args) try
DX_PRAGMA_IGNORE_RETURN_VALUE_END void _reset (const args &={}) try
DX_PRAGMA_IGNORE_RETURN_VALUE_END void _safety_offset (args &args) try
 set/get streaming safety offset
DX_PRAGMA_IGNORE_RETURN_VALUE_END void _samplerate (const args &args={}) try
DX_PRAGMA_IGNORE_RETURN_VALUE_END void _string (const args &args={}) try
DX_PRAGMA_IGNORE_RETURN_VALUE_END void _sync_reference (const args &args) try
 set/get I/O streaming block size
 catch (...)
 catch (...)
 catch (...)
 catch (...)
 catch (...)
 catch (...)
 catch (...)
 catch (...)
 catch (...)
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN catch (const dx::exception &__dx_exception)
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN catch (const dx::exception &__dx_exception)
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN catch (const dx::exception &__dx_exception)
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN catch (const dx::exception &__dx_exception)
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN catch (const dx::exception &__dx_exception)
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN catch (const dx::exception &__dx_exception)
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN catch (const dx::exception &__dx_exception)
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN catch (const dx::exception &__dx_exception)
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN catch (const dx::exception &__dx_exception)
 catch (const std::exception &__std_exception)
 catch (const std::exception &__std_exception)
 catch (const std::exception &__std_exception)
 catch (const std::exception &__std_exception)
 catch (const std::exception &__std_exception)
 catch (const std::exception &__std_exception)
 catch (const std::exception &__std_exception)
 catch (const std::exception &__std_exception)
 catch (const std::exception &__std_exception)
virtual bool head () const noexcept
virtual void help (args &args) try
virtual void help_head () const noexcept
virtual void help_scope () const noexcept
virtual DX_PRAGMA_IGNORE_RETURN_VALUE_END void no_args (const args &args) try
DX_PRAGMA_IGNORE_RETURN_VALUE_END auto select (const std::string &id) try
virtual DX_PRAGMA_IGNORE_RETURN_VALUE_END void version (const args &args={}) try

Protected Attributes

std::map< std::deque< std::string >, dispatchdictionary
const char * name {}
struct { 
   struct { 
      bool   ignore 
   }   error
   bool   quiet 
parameter

Member Typedef Documentation

◆ args

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

Constructor & Destructor Documentation

◆ device()

template<typename super_device_t>
template<typename ... initializer_t>
dx::test::device< super_device_t >::device ( decltype(super::driver)& driver,
const decltype(super::id)& id,
initializer_t... initializer )
inline
Here is the call graph for this function:

Member Function Documentation

◆ _clocksource()

template<typename super_device_t>
void dx::test::device< super_device_t >::_clocksource ( const args & args = {})
inlineprotected
Here is the caller graph for this function:

◆ _info()

template<typename super_device_t>
DX_PRAGMA_IGNORE_RETURN_VALUE_END void dx::test::device< super_device_t >::_info ( const args & )
inlineprotected

list device information

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _iosize()

template<typename super_device_t>
DX_PRAGMA_IGNORE_RETURN_VALUE_END void dx::test::device< super_device_t >::_iosize ( const args & args)
inlineprotected

set/get I/O streaming block size

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _license()

template<typename super_device_t>
DX_PRAGMA_IGNORE_RETURN_VALUE_END void dx::test::device< super_device_t >::_license ( const args & args)
inlineprotected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _reset()

template<typename super_device_t>
DX_PRAGMA_IGNORE_RETURN_VALUE_END void dx::test::device< super_device_t >::_reset ( const args & = {})
inlineprotected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _safety_offset()

template<typename super_device_t>
DX_PRAGMA_IGNORE_RETURN_VALUE_END void dx::test::device< super_device_t >::_safety_offset ( args & args)
inlineprotected

set/get streaming safety offset

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _samplerate()

template<typename super_device_t>
DX_PRAGMA_IGNORE_RETURN_VALUE_END void dx::test::device< super_device_t >::_samplerate ( const args & args = {})
inlineprotected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _string()

template<typename super_device_t>
DX_PRAGMA_IGNORE_RETURN_VALUE_END void dx::test::device< super_device_t >::_string ( const args & args = {})
inlineprotected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _sync_reference()

template<typename super_device_t>
DX_PRAGMA_IGNORE_RETURN_VALUE_END void dx::test::device< super_device_t >::_sync_reference ( const args & args)
inlineprotected

set/get I/O streaming block size

Here is the call graph for this function:
Here is the caller graph for this function:

◆ catch() [1/27]

template<typename super_device_t>
dx::test::device< super_device_t >::catch ( ...)
inlineprotected

◆ catch() [2/27]

template<typename super_device_t>
dx::test::device< super_device_t >::catch ( ...)
inlineprotected

◆ catch() [3/27]

template<typename super_device_t>
dx::test::device< super_device_t >::catch ( ...)
inlineprotected

◆ catch() [4/27]

template<typename super_device_t>
dx::test::device< super_device_t >::catch ( ...)
inlineprotected

◆ catch() [5/27]

template<typename super_device_t>
dx::test::device< super_device_t >::catch ( ...)
inlineprotected

◆ catch() [6/27]

template<typename super_device_t>
dx::test::device< super_device_t >::catch ( ...)
inlineprotected

◆ catch() [7/27]

template<typename super_device_t>
dx::test::device< super_device_t >::catch ( ...)
inlineprotected

◆ catch() [8/27]

template<typename super_device_t>
dx::test::device< super_device_t >::catch ( ...)
inlineprotected

◆ catch() [9/27]

template<typename super_device_t>
dx::test::device< super_device_t >::catch ( ...)
inlineprotected

◆ catch() [10/27]

template<typename super_device_t>
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN dx::test::device< super_device_t >::catch ( const dx::exception & __dx_exception)
inlineprotected

◆ catch() [11/27]

template<typename super_device_t>
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN dx::test::device< super_device_t >::catch ( const dx::exception & __dx_exception)
inlineprotected

◆ catch() [12/27]

template<typename super_device_t>
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN dx::test::device< super_device_t >::catch ( const dx::exception & __dx_exception)
inlineprotected
Here is the call graph for this function:

◆ catch() [13/27]

template<typename super_device_t>
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN dx::test::device< super_device_t >::catch ( const dx::exception & __dx_exception)
inlineprotected

◆ catch() [14/27]

template<typename super_device_t>
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN dx::test::device< super_device_t >::catch ( const dx::exception & __dx_exception)
inlineprotected

◆ catch() [15/27]

template<typename super_device_t>
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN dx::test::device< super_device_t >::catch ( const dx::exception & __dx_exception)
inlineprotected

◆ catch() [16/27]

template<typename super_device_t>
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN dx::test::device< super_device_t >::catch ( const dx::exception & __dx_exception)
inlineprotected

◆ catch() [17/27]

template<typename super_device_t>
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN dx::test::device< super_device_t >::catch ( const dx::exception & __dx_exception)
inlineprotected

◆ catch() [18/27]

template<typename super_device_t>
DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN dx::test::device< super_device_t >::catch ( const dx::exception & __dx_exception)
inlineprotected

◆ catch() [19/27]

template<typename super_device_t>
dx::test::device< super_device_t >::catch ( const std::exception & __std_exception)
inlineprotected

◆ catch() [20/27]

template<typename super_device_t>
dx::test::device< super_device_t >::catch ( const std::exception & __std_exception)
inlineprotected

◆ catch() [21/27]

template<typename super_device_t>
dx::test::device< super_device_t >::catch ( const std::exception & __std_exception)
inlineprotected

◆ catch() [22/27]

template<typename super_device_t>
dx::test::device< super_device_t >::catch ( const std::exception & __std_exception)
inlineprotected

◆ catch() [23/27]

template<typename super_device_t>
dx::test::device< super_device_t >::catch ( const std::exception & __std_exception)
inlineprotected

◆ catch() [24/27]

template<typename super_device_t>
dx::test::device< super_device_t >::catch ( const std::exception & __std_exception)
inlineprotected

◆ catch() [25/27]

template<typename super_device_t>
dx::test::device< super_device_t >::catch ( const std::exception & __std_exception)
inlineprotected

◆ catch() [26/27]

template<typename super_device_t>
dx::test::device< super_device_t >::catch ( const std::exception & __std_exception)
inlineprotected

◆ catch() [27/27]

template<typename super_device_t>
dx::test::device< super_device_t >::catch ( const std::exception & __std_exception)
inlineprotected

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

Here is the caller graph for this function:

◆ help()

virtual void dx::parser::help ( args & args)
inlineprotectedvirtualinherited
Here is the call graph for this function:
Here is the caller graph for this function:

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ help_scope()

virtual void dx::parser::help_scope ( ) const
inlineprotectedvirtualnoexceptinherited

Reimplemented in dx::select< parsers_t >, 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 >.

Here is the caller graph for this function:

◆ no_args()

virtual DX_PRAGMA_IGNORE_RETURN_VALUE_END void dx::parser::no_args ( const args & args)
inlineprotectedvirtualinherited
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator<<() [1/2]

DX_PRAGMA_IGNORE_RETURN_VALUE_BEGIN virtual DX_PRAGMA_IGNORE_RETURN_VALUE_END void dx::parser::operator<< ( args & args)
inlinevirtualinherited

Reimplemented in dx::select< parsers_t >.

Here is the call graph for this function:

◆ operator<<() [2/2]

virtual void dx::parser::operator<< ( const args & args)
inlinevirtualinherited

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ quiet()

virtual void dx::parser::quiet ( const args & = {})
inlinevirtualnoexceptinherited

◆ select()

DX_PRAGMA_IGNORE_RETURN_VALUE_END auto dx::parser::select ( const std::string & id)
inlineprotectedinherited
Here is the call graph for this function:
Here is the caller graph for this function:

◆ version()

virtual DX_PRAGMA_IGNORE_RETURN_VALUE_END void dx::parser::version ( const args & args = {})
inlineprotectedvirtualinherited
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ 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"},
{[this](args& args) {parameter.error.ignore= true; no_args(args);}, "ignore errors and continue"}},
{{"--quiet", "-q"}, {std::bind(&parser::quiet, this, std::placeholders::_1), "quiet!"}},
{{"--version", "-v"}, {std::bind(&parser::version, this, std::placeholders::_1), std::string{"display "}+ name+ " version"}},
}
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_test_device.h:41

◆ [struct]

struct { ... } dx::parser::error

◆ ignore

bool dx::parser::ignore
inherited

◆ name

const char* dx::parser::name {}
protectedinherited

◆ [struct]

struct { ... } dx::parser::parameter

◆ quiet

bool dx::parser::quiet
inherited

The documentation for this class was generated from the following file:

(c) copyright 2009 dynamic acoustics e.U. generated on

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.