nngn
Loading...
Searching...
No Matches
PlotWorker Class Referencefinal

#include <worker.h>

Inheritance diagram for PlotWorker:
Collaboration diagram for PlotWorker:

Signals

void new_size (std::size_t n)
 
void new_frame (qreal timestamp_ms)
 
void new_graph (Graph::Type type, QString title)
 
void new_data (Graph::Type type, qreal value)
 
void new_graph (QString title)
 
void new_data (const QVector< qreal > &v)
 
void new_size (std::size_t n)
 
void new_frame (qreal timestamp_ms)
 
void new_graph (Graph::Type type, QString title)
 
void new_data (Graph::Type type, qreal value)
 
void new_graph (QString title)
 
void new_data (const QVector< qreal > &v)
 
- Signals inherited from Worker
void finished (void)
 
void finished (void)
 

Private Types

enum class  Command : uint8_t {
  QUIT = 'q' , SIZE = 's' , GRAPH = 'g' , FRAME = 'f' ,
  DATA = 'd' , QUIT = 'q' , GRAPH = 'g' , DATA = 'd' ,
  QUIT = 'q' , SIZE = 's' , GRAPH = 'g' , FRAME = 'f' ,
  DATA = 'd' , QUIT = 'q' , GRAPH = 'g' , DATA = 'd'
}
 
enum class  Command : uint8_t {
  QUIT = 'q' , SIZE = 's' , GRAPH = 'g' , FRAME = 'f' ,
  DATA = 'd' , QUIT = 'q' , GRAPH = 'g' , DATA = 'd' ,
  QUIT = 'q' , SIZE = 's' , GRAPH = 'g' , FRAME = 'f' ,
  DATA = 'd' , QUIT = 'q' , GRAPH = 'g' , DATA = 'd'
}
 
enum class  Command : uint8_t {
  QUIT = 'q' , SIZE = 's' , GRAPH = 'g' , FRAME = 'f' ,
  DATA = 'd' , QUIT = 'q' , GRAPH = 'g' , DATA = 'd' ,
  QUIT = 'q' , SIZE = 's' , GRAPH = 'g' , FRAME = 'f' ,
  DATA = 'd' , QUIT = 'q' , GRAPH = 'g' , DATA = 'd'
}
 
enum class  Command : uint8_t {
  QUIT = 'q' , SIZE = 's' , GRAPH = 'g' , FRAME = 'f' ,
  DATA = 'd' , QUIT = 'q' , GRAPH = 'g' , DATA = 'd' ,
  QUIT = 'q' , SIZE = 's' , GRAPH = 'g' , FRAME = 'f' ,
  DATA = 'd' , QUIT = 'q' , GRAPH = 'g' , DATA = 'd'
}
 

Private Member Functions

bool cmd (std::string_view s) final
 
bool cmd_size (std::stringstream *ss)
 
bool cmd_graph (std::stringstream *ss)
 
bool cmd_frame (std::stringstream *ss)
 
bool cmd_data (std::stringstream *ss)
 
bool cmd (std::string_view s) final
 
void cmd_graph (std::stringstream *ss)
 
bool cmd_data (std::stringstream *ss)
 
bool cmd (std::string_view s) final
 
bool cmd_size (std::stringstream *ss)
 
bool cmd_graph (std::stringstream *ss)
 
bool cmd_frame (std::stringstream *ss)
 
bool cmd_data (std::stringstream *ss)
 
bool cmd (std::string_view s) final
 
void cmd_graph (std::stringstream *ss)
 
bool cmd_data (std::stringstream *ss)
 

Additional Inherited Members

- Public Slots inherited from Worker
void finish (void)
 
void finish (void)
 
- Public Member Functions inherited from Worker
bool init (int fd)
 
bool destroy (void)
 
void run (void) final
 
constexpr bool ok (void) const
 
bool init (int fd)
 
bool destroy (void)
 
void run (void) final
 
constexpr bool ok (void) const
 
- Protected Member Functions inherited from Worker
template<typename ... Ts>
auto read_values (std::stringstream *s, Ts *...ts)
 
void err (void)
 
template<typename ... Ts>
auto read_values (std::stringstream *s, Ts *...ts)
 
void err (void)
 

Member Enumeration Documentation

◆ Command [1/4]

enum class PlotWorker::Command : uint8_t
strongprivate
Enumerator
QUIT 
SIZE 
GRAPH 
FRAME 
DATA 
QUIT 
GRAPH 
DATA 
QUIT 
SIZE 
GRAPH 
FRAME 
DATA 
QUIT 
GRAPH 
DATA 

◆ Command [2/4]

enum class PlotWorker::Command : uint8_t
strongprivate
Enumerator
QUIT 
SIZE 
GRAPH 
FRAME 
DATA 
QUIT 
GRAPH 
DATA 
QUIT 
SIZE 
GRAPH 
FRAME 
DATA 
QUIT 
GRAPH 
DATA 

◆ Command [3/4]

enum class PlotWorker::Command : uint8_t
strongprivate
Enumerator
QUIT 
SIZE 
GRAPH 
FRAME 
DATA 
QUIT 
GRAPH 
DATA 
QUIT 
SIZE 
GRAPH 
FRAME 
DATA 
QUIT 
GRAPH 
DATA 

◆ Command [4/4]

enum class PlotWorker::Command : uint8_t
strongprivate
Enumerator
QUIT 
SIZE 
GRAPH 
FRAME 
DATA 
QUIT 
GRAPH 
DATA 
QUIT 
SIZE 
GRAPH 
FRAME 
DATA 
QUIT 
GRAPH 
DATA 

Member Function Documentation

◆ cmd() [1/4]

bool PlotWorker::cmd ( std::string_view  s)
finalprivatevirtual

Implements Worker.

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

◆ cmd() [2/4]

bool PlotWorker::cmd ( std::string_view  s)
finalprivatevirtual

Implements Worker.

◆ cmd() [3/4]

bool PlotWorker::cmd ( std::string_view  s)
finalprivatevirtual

Implements Worker.

◆ cmd() [4/4]

bool PlotWorker::cmd ( std::string_view  s)
finalprivatevirtual

Implements Worker.

◆ cmd_data() [1/4]

bool PlotWorker::cmd_data ( std::stringstream *  ss)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cmd_data() [2/4]

bool PlotWorker::cmd_data ( std::stringstream *  ss)
private

◆ cmd_data() [3/4]

bool PlotWorker::cmd_data ( std::stringstream *  ss)
private

◆ cmd_data() [4/4]

bool PlotWorker::cmd_data ( std::stringstream *  ss)
private

◆ cmd_frame() [1/2]

bool PlotWorker::cmd_frame ( std::stringstream *  ss)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cmd_frame() [2/2]

bool PlotWorker::cmd_frame ( std::stringstream *  ss)
private

◆ cmd_graph() [1/4]

void PlotWorker::cmd_graph ( std::stringstream *  ss)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cmd_graph() [2/4]

void PlotWorker::cmd_graph ( std::stringstream *  ss)
private

◆ cmd_graph() [3/4]

bool PlotWorker::cmd_graph ( std::stringstream *  ss)
private

◆ cmd_graph() [4/4]

void PlotWorker::cmd_graph ( std::stringstream *  ss)
private

◆ cmd_size() [1/2]

bool PlotWorker::cmd_size ( std::stringstream *  ss)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cmd_size() [2/2]

bool PlotWorker::cmd_size ( std::stringstream *  ss)
private

◆ new_data [1/4]

void PlotWorker::new_data ( const QVector< qreal > &  v)
signal

◆ new_data [2/4]

void PlotWorker::new_data ( const QVector< qreal > &  v)
signal

◆ new_data [3/4]

void PlotWorker::new_data ( Graph::Type  type,
qreal  value 
)
signal
Here is the caller graph for this function:

◆ new_data [4/4]

void PlotWorker::new_data ( Graph::Type  type,
qreal  value 
)
signal

◆ new_frame [1/2]

void PlotWorker::new_frame ( qreal  timestamp_ms)
signal
Here is the caller graph for this function:

◆ new_frame [2/2]

void PlotWorker::new_frame ( qreal  timestamp_ms)
signal

◆ new_graph [1/4]

void PlotWorker::new_graph ( Graph::Type  type,
QString  title 
)
signal
Here is the caller graph for this function:

◆ new_graph [2/4]

void PlotWorker::new_graph ( Graph::Type  type,
QString  title 
)
signal

◆ new_graph [3/4]

void PlotWorker::new_graph ( QString  title)
signal

◆ new_graph [4/4]

void PlotWorker::new_graph ( QString  title)
signal

◆ new_size [1/2]

void PlotWorker::new_size ( std::size_t  n)
signal
Here is the caller graph for this function:

◆ new_size [2/2]

void PlotWorker::new_size ( std::size_t  n)
signal

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