The DataStreamer base class to create your own plugin. More...
#include <datastreamer_base.h>
Signals | |
void | clearBuffers () |
void | closed () |
void | dataReceived () |
Public Member Functions | |
MessageParserFactory * | availableParsers () |
PlotDataMapRef & | dataMap () |
const PlotDataMapRef & | dataMap () const |
DataStreamer () | |
virtual bool | isRunning () const =0 |
std::mutex & | mutex () |
void | setAvailableParsers (MessageParserFactory *parsers) |
void | setMaximumRange (double range) |
virtual void | shutdown ()=0 |
virtual bool | start (QStringList *)=0 |
virtual | ~DataStreamer ()=default |
Public Member Functions inherited from PJ::PlotJugglerPlugin | |
virtual const std::vector< QAction * > & | availableActions () |
virtual bool | isDebugPlugin () |
virtual const char * | name () const =0 |
virtual QWidget * | optionsWidget () |
PlotJugglerPlugin () | |
virtual bool | xmlLoadState (const QDomElement &parent_element) |
virtual bool | xmlSaveState (QDomDocument &doc, QDomElement &parent_element) const |
QDomElement | xmlSaveState (QDomDocument &doc) const |
Private Attributes | |
MessageParserFactory * | _available_parsers |
PlotDataMapRef | _data_map |
std::mutex | _mutex |
QAction * | _start_streamer |
The DataStreamer base class to create your own plugin.
Important. To avoid problems with thread safety, it is important that ANY update to dataMap(), which share its elements with the main application, is protected by the mutex()
In particular the periodic updates.
Definition at line 20 of file datastreamer_base.h.
|
inline |
Definition at line 25 of file datastreamer_base.h.
|
virtualdefault |
|
inline |
Definition at line 57 of file datastreamer_base.h.
|
signal |
|
signal |
|
inline |
Definition at line 42 of file datastreamer_base.h.
|
inline |
Definition at line 47 of file datastreamer_base.h.
|
signal |
|
pure virtual |
Implemented in WebsocketServer, DataStreamZMQ, UDP_Server, DataStreamMQTT, and DataStreamSample.
|
inline |
Definition at line 35 of file datastreamer_base.h.
|
inline |
Definition at line 52 of file datastreamer_base.h.
|
inline |
Definition at line 84 of file datastreamer_base.h.
|
pure virtual |
Implemented in WebsocketServer, DataStreamZMQ, UDP_Server, DataStreamMQTT, and DataStreamSample.
|
pure virtual |
Implemented in WebsocketServer, DataStreamZMQ, UDP_Server, DataStreamMQTT, and DataStreamSample.
|
private |
Definition at line 81 of file datastreamer_base.h.
|
private |
Definition at line 79 of file datastreamer_base.h.
|
private |
Definition at line 78 of file datastreamer_base.h.
|
private |
Definition at line 80 of file datastreamer_base.h.