Public Member Functions | Private Member Functions | Private Attributes | List of all members
StatePublisherZMQ Class Reference

#include <statepublisher_zmq.h>

Inheritance diagram for StatePublisherZMQ:
Inheritance graph
[legend]

Public Member Functions

 StatePublisherZMQ ()
 
virtual void updateState (PlotDataMap *datamap, double current_time)
 
virtual ~StatePublisherZMQ ()
 

Private Member Functions

void run_thread ()
 
- Private Member Functions inherited from StatePublisher
virtual QWidget * embeddedWidget ()
 
virtual bool enabled () const =0
 
virtual bool isDebugPlugin ()
 
virtual const char * name () const =0
 
virtual void play (double interval)=0
 
void setDataMap (const PlotDataMapRef *datamap)
 
virtual void setEnabled (bool enabled)
 
virtual void setParentMenu (QMenu *parent_menu, QAction *parent_action)
 
virtual void updateState (double current_time)=0
 
virtual bool xmlLoadState (const QDomElement &parent_element)
 
virtual bool xmlSaveState (QDomDocument &doc, QDomElement &parent_element) const
 
QDomElement xmlSaveState (QDomDocument &doc) const
 
virtual ~StatePublisher ()
 

Private Attributes

std::map< QString, double > _current_data
 
std::mutex _mutex
 
PlotDataMap * _prev_dataplot
 
double _prev_time
 
std::thread _thread
 
- Private Attributes inherited from StatePublisher
QAction * _action
 
const PlotDataMapRef_datamap
 
QMenu * _menu
 

Detailed Description

Definition at line 12 of file statepublisher_zmq.h.

Constructor & Destructor Documentation

StatePublisherZMQ::StatePublisherZMQ ( )

Definition at line 8 of file statepublisher_zmq.cpp.

StatePublisherZMQ::~StatePublisherZMQ ( )
virtual

Definition at line 16 of file statepublisher_zmq.cpp.

Member Function Documentation

void StatePublisherZMQ::run_thread ( )
private

Definition at line 21 of file statepublisher_zmq.cpp.

void StatePublisherZMQ::updateState ( PlotDataMap *  datamap,
double  current_time 
)
virtual

Definition at line 95 of file statepublisher_zmq.cpp.

Member Data Documentation

std::map<QString, double> StatePublisherZMQ::_current_data
private

Definition at line 33 of file statepublisher_zmq.h.

std::mutex StatePublisherZMQ::_mutex
private

Definition at line 31 of file statepublisher_zmq.h.

PlotDataMap* StatePublisherZMQ::_prev_dataplot
private

Definition at line 26 of file statepublisher_zmq.h.

double StatePublisherZMQ::_prev_time
private

Definition at line 34 of file statepublisher_zmq.h.

std::thread StatePublisherZMQ::_thread
private

Definition at line 30 of file statepublisher_zmq.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:19