1#ifndef NNGN_TOOLS_WORKER_H
2#define NNGN_TOOLS_WORKER_H
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';
void finish(void)
Definition worker.cpp:14
auto read_values(std::stringstream *s, Ts *...ts)
Definition worker.h:35
bool destroy(void)
Definition worker.cpp:9
bool error
Definition worker.h:29
void err(void)
Definition worker.cpp:13
virtual bool cmd(std::string_view s)=0
constexpr bool ok(void) const
Definition worker.h:22
Poller poller
Definition worker.h:31
void run(void) final
Definition worker.cpp:16
static std::ostream & l()
Definition log.cpp:56
init
Definition img_common.lua:34
std::chrono::seconds s
Definition timing.cpp:6
std::chrono::duration< float, typename T::period > fd
Definition timing.cpp:8