|
dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
|
the bus's command set with the streaming tests: a device with a streaming engine is testable More...
#include <dx_test.h>
Public Types | |
| typedef decltype(driver::dictionary) | dictionary_t |
Public Member Functions | |
| driver(const typename super::match& match, const char* product_id, const char* name, const typename super::dictionary_t& dictionary= {}) | |
| virtual void | operator <<(const argsargs& argsargs) |
| void | operator <<(argsargs& argsargs) override |
| virtual void | quiet(const args &= {}) noexcept |
| bool | try_launch() |
Protected Types | |
| using | args= parser::args |
| typedef device_t::desc_t | desc |
| typedef device_t::engine_t | engine_t |
Protected Member Functions | |
| void | arrived(device_t& device) override |
| template<typename data_t> | |
| void | buffer(const class table& table, size_t size= 0x1000, uint32_t rx= 1, uint32_t tx= 1, const std::chrono::high_resolution_clock::duration& duration= 3s) const |
| std::string | description(const device_t& device) const override |
| void | device_arrival_removal(const args &= {}) |
| void | filter(const args& cargs= {}) |
| bool | head() const noexcept override |
| virtual void | help(argsargs& argsargs) |
| void | help_head() const noexcept override |
| virtual void | indent(argsargs& argsargs) |
| void | list(const args &= {}) |
| dx::log | logged() |
| the log of the host or of this client, as –log-level's and –log-pipe's host and client choose | |
| dx::log | logged(const dx::log& log) |
| void | loglevel(argsargs& argsargs) |
| void | logpipe(argsargs& argsargs) |
| where the lines of the host or of this client go: [<err | log | out> <sink[,sink..] | none>] [..] | |
| parser::dispatch | merge(typename parser::dispatch dispatch, const std::weak_ptr<device_t>& weak) |
| a device's command as the driver's: each function in it runs on the device held - a removal meanwhile concludes it, the object stays until the function returns | |
| void | meta_buffer(const class table& table, size_t size, uint32_t rx, uint32_t tx, const std::chrono::high_resolution_clock::duration& duration) const |
| virtual void | no_args(const argsargs& argsargs) |
| void | removed(device_t& device) noexcept override |
| void | reselect(const device_t* going= {}) |
| every device's command anew, its place as –info lists it first among its selectors: the places follow the tree, a device going has none; the only device's commands are the driver's own | |
| auto | select(const std::string& id) |
| std::deque<std::string> | selectors(const device_t& device) const override |
| its model and vendor name it too | |
| bool | testable(const device_t& device) const override |
| a device the tests may run on | |
| std::shared_ptr<device_t> | under_test(const std::string& puid) |
| the device a puid names, where it is | |
| void | unittest(argsargs& argsargs) |
| every selected device runs its unit test on a thread of its own, its rows behind its name; surprise removals come from outside - a device leaving its bus ends its test where it stands, its successor takes up the rows left | |
| void | unittest_align(const args &= {}) |
| void | unittest_buffer(argsargs& argsargs) |
| void | unittest_format(const args &= {}) |
| void | unittest_preference(argsargs& argsargs) |
| void | unittest_preference_erase(decltype(device_t::preference)& preferences, uint32_t& leaves) |
| void | unittest_preference_write(const decltype(device_t::preference)& preferencepreference, const std::chrono::high_resolution_clock::time_point& timeout, uint32_t& leaves, uint32_t depth= 0) |
| virtual void | version(const argsargs& argsargs= {}) |
Static Protected Member Functions | |
| static std::vector<table::column> | buffer_columns() |
| template<typename value_t= int32_t> | |
| static std::optional<value_t> | value(argsargs& argsargs) |
| template<typename value_t= int32_t> | |
| static value_t | value(argsargs& argsargs, const char* name) |
| the next argument as a number of value_t, which the parameter named requires | |
| template<typename value_t> | |
| static value_t | value(argsargs& argsargs, value_t dflt) |
| the next argument as a number of value_t, the default where it is none | |
Protected Attributes | |
| std::map<std::deque<std::string>, dispatch> | dictionary |
| std::chrono::milliseconds | launch_time |
| < the commands - a bus driver's own dictionary() is its system's matching | |
| std::deque<std::deque<std::string>> | merged |
| const char* | name{} |
| struct dx::test::driver:: { ... } | parameter |
| std::deque<std::string> | selection |
| std::chrono::milliseconds | surprise{} |
| a surprise removal every interval, none at 0 | |
| struct device_t::unit_test | unit_test |
Friends | |
| class | surprise::asynchronous<driver> |
the bus's command set with the streaming tests: a device with a streaming engine is testable
|
protected |
|
protected |
|
inherited |
|
protected |
|
inline |
|
inlineoverrideprotectedinherited |
|
inlineprotected |
|
inlinestaticprotected |
|
inlineoverrideprotectedvirtual |
Reimplemented from dx::test::driver< super_device_t, device_t, driver_t >.
|
inlineprotectedinherited |
a device that reports its own arrival and removal - the whole body of the arrival/removal watch
|
inlineprotectedinherited |
|
inlineoverrideprotectedvirtualnoexcept |
Reimplemented from dx::test::driver< super_device_t, device_t, driver_t >.
|
inlineprotectedvirtualinherited |
|
inlineoverrideprotectedvirtualnoexcept |
Reimplemented from dx::test::driver< super_device_t, device_t, driver_t >.
|
inlineprotectedvirtualinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
the log of the host or of this client, as –log-level's and –log-pipe's host and client choose
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
where the lines of the host or of this client go: [<err | log | out> <sink[,sink..] | none>] [..]
|
inlineprotectedinherited |
a device's command as the driver's: each function in it runs on the device held - a removal meanwhile concludes it, the object stays until the function returns
|
inlineprotected |
|
inlineprotectedvirtualinherited |
|
inlinevirtualinherited |
|
inlineoverridevirtualinherited |
|
inlinevirtualnoexceptinherited |
|
inlineoverrideprotectednoexceptinherited |
|
inlineprotectedinherited |
every device's command anew, its place as –info lists it first among its selectors: the places follow the tree, a device going has none; the only device's commands are the driver's own
|
inlineprotectedinherited |
|
inlineoverrideprotectedvirtual |
its model and vendor name it too
Reimplemented from dx::test::driver< super_device_t, device_t, driver_t >.
|
inlineoverrideprotectedvirtual |
a device the tests may run on
Reimplemented from dx::test::driver< super_device_t, device_t, driver_t >.
|
inline |
|
inlineprotected |
the device a puid names, where it is
|
inlineprotected |
every selected device runs its unit test on a thread of its own, its rows behind its name; surprise removals come from outside - a device leaving its bus ends its test where it stands, its successor takes up the rows left
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlinestaticprotectedinherited |
the next argument where it is a number of value_t, consumed: $ and 0x hexadecimal, decimal otherwise - none where it is no number or outside value_t
|
inlinestaticprotectedinherited |
the next argument as a number of value_t, which the parameter named requires
|
inlinestaticprotectedinherited |
the next argument as a number of value_t, the default where it is none
|
inlineprotectedvirtualinherited |
|
friend |
|
protectedinherited |
|
protected |
< the commands - a bus driver's own dictionary() is its system's matching
longest try_launch() since last reset
|
protectedinherited |
the only device's commands the driver carries
|
protectedinherited |
| struct { ... } dx::test::driver<super_device_t, device_t, driver_t>::parameter |
|
protected |
the devices under test by index or selector, every testable one where none
|
protected |
a surprise removal every interval, none at 0
|
protected |