nngn
Loading...
Searching...
No Matches
worker.h
Go to the documentation of this file.
1#ifndef NNGN_TOOLS_TIMELINE_WORKER_H
2#define NNGN_TOOLS_TIMELINE_WORKER_H
3
4#include "../worker.h"
5
6class PlotWorker final : public Worker {
7 Q_OBJECT
8 enum class Command : uint8_t { QUIT = 'q', GRAPH = 'g', DATA = 'd' };
9 bool cmd(std::string_view s) final;
10 void cmd_graph(std::stringstream *ss);
11 bool cmd_data(std::stringstream *ss);
12signals:
13 void new_graph(QString title);
14 void new_data(const QVector<qreal> &v);
15};
16
17#endif
Definition worker.h:8
void new_data(const QVector< qreal > &v)
void cmd_graph(std::stringstream *ss)
bool cmd(std::string_view s) final
Command
Definition worker.h:8
bool cmd_data(std::stringstream *ss)
void new_graph(QString title)
Definition worker.h:12
v[1]
Definition math.lua:22
std::chrono::seconds s
Definition timing.cpp:6