nngn
Loading...
Searching...
No Matches
worker.h
Go to the documentation of this file.
1#ifndef NNGN_TOOLS_PLOT_WORKER_H
2#define NNGN_TOOLS_PLOT_WORKER_H
3
4#include "../worker.h"
5
6#include "graph.h"
7
8class PlotWorker final : public Worker {
9 Q_OBJECT
10 enum class Command : uint8_t {
11 QUIT = 'q', SIZE = 's', GRAPH = 'g', FRAME = 'f', DATA = 'd',
12 };
13 bool cmd(std::string_view s) final;
14 bool cmd_size(std::stringstream *ss);
15 bool cmd_graph(std::stringstream *ss);
16 bool cmd_frame(std::stringstream *ss);
17 bool cmd_data(std::stringstream *ss);
18signals:
19 void new_size(std::size_t n);
20 void new_frame(qreal timestamp_ms);
21 void new_graph(Graph::Type type, QString title);
22 void new_data(Graph::Type type, qreal value);
23};
24
25#endif
Definition worker.h:8
bool cmd_frame(std::stringstream *ss)
Definition worker.cpp:63
void new_graph(Graph::Type type, QString title)
bool cmd_graph(std::stringstream *ss)
Definition worker.cpp:51
void new_frame(qreal timestamp_ms)
bool cmd(std::string_view s) final
Definition worker.cpp:21
bool cmd_size(std::stringstream *ss)
Definition worker.cpp:42
Command
Definition worker.h:10
void new_size(std::size_t n)
void new_data(Graph::Type type, qreal value)
bool cmd_data(std::stringstream *ss)
Definition worker.cpp:72
Definition worker.h:12
local n
Definition dump_lights.lua:5
Type
Definition graph.h:5
std::chrono::seconds s
Definition timing.cpp:6