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

a command's results as a table: its head once, a row per run beneath the one before - the run's seconds and its share of the duration ahead of the command's columns More...

#include <dx_test_device.h>

Collaboration diagram for dx::test::table:

Classes

struct  column
class  row
 one run's row: true until stopped or the duration is over - asked, it rewrites itself in place every 20 ms, the cursor hidden; its end writes the last state, where it ran, and shows the cursor again More...

Public Member Functions

template<typename values_t>
row<values_t> operator ()(std::optional<std::chrono::seconds> duration, values_t&& values) const
 table(bool quiet, std::vector<column> columns)

Static Public Member Functions

static std::string legend(std::vector<column> columns)
 every column with its description, for the command's help

Public Attributes

std::recursive_mutex mutex
 what else the command prints meanwhile takes it

Static Public Attributes

static const std::vector<column> run{{.name= "sec", .width= 6, .description= "seconds the run streams"}, {.name= "%", .width= 3, .description= "its share of the duration"}}

Detailed Description

a command's results as a table: its head once, a row per run beneath the one before - the run's seconds and its share of the duration ahead of the command's columns

Constructor & Destructor Documentation

◆ table()

dx::test::table::table(bool quiet, std::vector<column> columns)
inline
Here is the caller graph for this function:

Member Function Documentation

◆ legend()

std::string dx::test::table::legend(std::vector<column> columns)
inlinestatic

every column with its description, for the command's help

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

◆ operator ()()

template<typename values_t>
row<values_t> dx::test::table::operator ()(std::optional<std::chrono::seconds> duration, values_t&& values) const
inline
Here is the call graph for this function:

Member Data Documentation

◆ mutex

std::recursive_mutex dx::test::table::mutex
mutable

what else the command prints meanwhile takes it

◆ run

const std::vector<table::column> dx::test::table::run{{.name= "sec", .width= 6, .description= "seconds the run streams"},{.name= "%", .width= 3, .description= "its share of the duration"}}
inlinestatic

the columns every row leads with


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