Signals | Public Member Functions | Private Attributes
DataStreamer Class Reference

The DataStreamer base class to create your own plugin. More...

#include <datastreamer_base.h>

Inheritance diagram for DataStreamer:
Inheritance graph
[legend]

List of all members.

Signals

void clearBuffers ()
void connectionClosed ()
void dataUpdated ()

Public Member Functions

virtual std::vector< QString > appendData (PlotDataMapRef &destination)
PlotDataMapRefdataMap ()
const PlotDataMapRefdataMap () const
 DataStreamer ()
virtual bool isRunning () const =0
std::mutex & mutex ()
void setMaximumRange (double range)
virtual void shutdown ()=0
virtual bool start (QStringList *)=0
virtual ~DataStreamer ()

Private Attributes

PlotDataMapRef _data_map
std::mutex _mutex
QAction * _start_streamer

Detailed Description

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()

This includes in particular the periodic updates.

Definition at line 17 of file datastreamer_base.h.


Constructor & Destructor Documentation

Definition at line 22 of file datastreamer_base.h.

virtual DataStreamer::~DataStreamer ( ) [inline, virtual]

Definition at line 34 of file datastreamer_base.h.


Member Function Documentation

std::vector< QString > DataStreamer::appendData ( PlotDataMapRef destination) [inline, virtual]

Reimplemented in DataStreamROS.

Definition at line 93 of file datastreamer_base.h.

void DataStreamer::clearBuffers ( ) [signal]
void DataStreamer::connectionClosed ( ) [signal]

Definition at line 45 of file datastreamer_base.h.

const PlotDataMapRef& DataStreamer::dataMap ( ) const [inline]

Definition at line 50 of file datastreamer_base.h.

void DataStreamer::dataUpdated ( ) [signal]
virtual bool DataStreamer::isRunning ( ) const [pure virtual]
std::mutex& DataStreamer::mutex ( ) [inline]

Definition at line 36 of file datastreamer_base.h.

QT_END_NAMESPACE void DataStreamer::setMaximumRange ( double  range) [inline]

Definition at line 81 of file datastreamer_base.h.

virtual void DataStreamer::shutdown ( ) [pure virtual]
virtual bool DataStreamer::start ( QStringList *  ) [pure virtual]

Member Data Documentation

Definition at line 65 of file datastreamer_base.h.

std::mutex DataStreamer::_mutex [private]

Definition at line 64 of file datastreamer_base.h.

QAction* DataStreamer::_start_streamer [private]

Definition at line 66 of file datastreamer_base.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Wed Jul 3 2019 19:28:05