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

#include <publisher_csv.h>

Inheritance diagram for StatePublisherCSV:
Inheritance graph
[legend]

Public Slots

virtual void setEnabled (bool enabled) override
 
- Public Slots inherited from PJ::StatePublisher
virtual void setEnabled (bool enabled)=0
 Method called when the checkbox "enabled" is checked in the main app. More...
 

Public Member Functions

virtual bool enabled () const override
 True if started. More...
 
virtual const char * name () const override
 Name of the plugin type, NOT the particular instance. More...
 
virtual void play (double) override
 
 StatePublisherCSV ()
 
virtual void updateState (double current_time) override
 Method called when the timetracker is moved manually to a certain position. More...
 
virtual ~StatePublisherCSV () override
 
- Public Member Functions inherited from PJ::StatePublisher
void setDataMap (const PlotDataMapRef *datamap)
 
virtual ~StatePublisher ()=default
 
- Public Member Functions inherited from PJ::PlotJugglerPlugin
virtual const std::vector< QAction * > & availableActions ()
 
virtual bool isDebugPlugin ()
 
virtual QWidget * optionsWidget ()
 optionsWidget pointer to a persistent widget used to set the plugin options . More...
 
 PlotJugglerPlugin ()=default
 
virtual bool xmlLoadState (const QDomElement &parent_element)
 Override this method to load the status of the plugin from XML. More...
 
QDomElement xmlSaveState (QDomDocument &doc) const
 
virtual bool xmlSaveState (QDomDocument &doc, QDomElement &parent_element) const
 Override this method to save the status of the plugin to XML. More...
 

Private Slots

void onWindowClosed ()
 

Private Member Functions

void delayedClearNotification ()
 
QString generateRangeCSV (double time_start, double time_end)
 
QString generateStatisticsCSV (double time_start, double time_end)
 
bool getTimeRanges (double *first, double *last)
 
void saveFile (QString text)
 
void updateButtonsState ()
 

Private Attributes

QDialog * _dialog
 
bool _enabled = false
 
double _end_time = std::numeric_limits<double>::quiet_NaN()
 
std::mutex _mutex
 
QTimer * _notification_timer
 
double _previous_time = 0
 
double _start_time = std::numeric_limits<double>::quiet_NaN()
 
Ui::PublisherCSV_DIalog * _ui
 

Additional Inherited Members

- Signals inherited from PJ::StatePublisher
void closed ()
 signal to be emitted when the plugin disable itself. More...
 
- Protected Attributes inherited from PJ::StatePublisher
const PlotDataMapRef_datamap
 

Detailed Description

Definition at line 13 of file publisher_csv.h.

Constructor & Destructor Documentation

◆ StatePublisherCSV()

StatePublisherCSV::StatePublisherCSV ( )

Definition at line 14 of file publisher_csv.cpp.

◆ ~StatePublisherCSV()

StatePublisherCSV::~StatePublisherCSV ( )
overridevirtual

Definition at line 18 of file publisher_csv.cpp.

Member Function Documentation

◆ delayedClearNotification()

void StatePublisherCSV::delayedClearNotification ( )
private

◆ enabled()

virtual bool StatePublisherCSV::enabled ( ) const
inlineoverridevirtual

True if started.

Implements PJ::StatePublisher.

Definition at line 29 of file publisher_csv.h.

◆ generateRangeCSV()

QString StatePublisherCSV::generateRangeCSV ( double  time_start,
double  time_end 
)
private

Definition at line 254 of file publisher_csv.cpp.

◆ generateStatisticsCSV()

QString StatePublisherCSV::generateStatisticsCSV ( double  time_start,
double  time_end 
)
private

Definition at line 127 of file publisher_csv.cpp.

◆ getTimeRanges()

bool StatePublisherCSV::getTimeRanges ( double *  first,
double *  last 
)
private

Definition at line 194 of file publisher_csv.cpp.

◆ name()

virtual const char* StatePublisherCSV::name ( ) const
inlineoverridevirtual

Name of the plugin type, NOT the particular instance.

Implements PJ::PlotJugglerPlugin.

Definition at line 22 of file publisher_csv.h.

◆ onWindowClosed

void StatePublisherCSV::onWindowClosed ( )
privateslot

Definition at line 121 of file publisher_csv.cpp.

◆ play()

virtual void StatePublisherCSV::play ( double  interval)
inlineoverridevirtual

Method called when the "play" button is cheked.

Parameters
intervalis seconds passed since the last time play was called.

Implements PJ::StatePublisher.

Definition at line 39 of file publisher_csv.h.

◆ saveFile()

void StatePublisherCSV::saveFile ( QString  text)
private

Definition at line 219 of file publisher_csv.cpp.

◆ setEnabled

void StatePublisherCSV::setEnabled ( bool  enabled)
overridevirtualslot

Definition at line 22 of file publisher_csv.cpp.

◆ updateButtonsState()

void StatePublisherCSV::updateButtonsState ( )
private

Definition at line 210 of file publisher_csv.cpp.

◆ updateState()

virtual void StatePublisherCSV::updateState ( double  current_time)
inlineoverridevirtual

Method called when the timetracker is moved manually to a certain position.

Implements PJ::StatePublisher.

Definition at line 34 of file publisher_csv.h.

Member Data Documentation

◆ _dialog

QDialog* StatePublisherCSV::_dialog
private

Definition at line 57 of file publisher_csv.h.

◆ _enabled

bool StatePublisherCSV::_enabled = false
private

Definition at line 52 of file publisher_csv.h.

◆ _end_time

double StatePublisherCSV::_end_time = std::numeric_limits<double>::quiet_NaN()
private

Definition at line 55 of file publisher_csv.h.

◆ _mutex

std::mutex StatePublisherCSV::_mutex
private

Definition at line 50 of file publisher_csv.h.

◆ _notification_timer

QTimer* StatePublisherCSV::_notification_timer
private

Definition at line 60 of file publisher_csv.h.

◆ _previous_time

double StatePublisherCSV::_previous_time = 0
private

Definition at line 53 of file publisher_csv.h.

◆ _start_time

double StatePublisherCSV::_start_time = std::numeric_limits<double>::quiet_NaN()
private

Definition at line 54 of file publisher_csv.h.

◆ _ui

Ui::PublisherCSV_DIalog* StatePublisherCSV::_ui
private

Definition at line 58 of file publisher_csv.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51