1#ifndef NNGN_TOOLS_WORKER_H
2#define NNGN_TOOLS_WORKER_H
12class Worker :
public QThread {
15 template<
typename ...Ts>
22 constexpr bool ok(
void)
const {
return !this->
error; }
28 virtual bool cmd(std::string_view
s) = 0;
34template<
typename ...Ts>
40 <<
"failed to read values from "
41 << std::quoted(
s->str()) <<
'\n';
auto read_values(std::stringstream *s, Ts *...ts)
bool error
Definition: worker.h:29
virtual bool cmd(std::string_view s)=0
constexpr bool ok(void) const
Definition: worker.h:22
Poller poller
Definition: worker.h:31
static std::ostream & l()
Definition: log.cpp:56
std::chrono::duration< float, typename T::period > fd
Definition: timing.cpp:8
std::chrono::seconds s
Definition: timing.cpp:6