6 #ifndef REALTIMEPLOT_H_
7 #define REALTIMEPLOT_H_
9 #include "ocurvesconfig.h"
11 #include "plotgenerator.h"
12 #include "plotsource.h"
18 class QAbstractSocket;
146 void appendLoad(
const QStringList &connectionFiles);
164 unsigned loadSpecs(
double startTime);
180 void createPlots(
RealTimePlotInfo &rtplot,
unsigned count,
const QStringList *headings =
nullptr);
185 QStringList _connectionFiles;
186 QList<RealTimePlotInfo *> _sources;
190 #endif // REALTIMEPLOT_H_
bool pendingLoad(QStringList &pendingFiles)
Retrieve the list of connection files pending processing.
const Curves * curves() const
Access the curves model to load data into.
Definition: plotgenerator.h:105
RealTimeCommSpec * spec
Communications specification.
Definition: realtimeplot.h:126
void stop()
Stop current real-time plots without terminating the thread.
Generates PlotInstance objects for plotting over real-time connections.
Definition: realtimeplot.h:112
Default read buffer size (bytes).
Definition: realtimeplot.h:119
RealTimePlotInfo()
Constructor.
Default sample buffer size limit (element count).
Definition: realtimeplot.h:118
QByteArray readBuffer
Read buffer.
Definition: realtimeplot.h:127
The data model for loaded plots and curves.
Definition: curves.h:36
void run() override
Run loop.
Data tracked about a real time source.
Definition: realtimeplot.h:123
~RealTimePlot()
Destructor, ensuring the thread is stopped and connections are closed.
Specifies a real time communication specification, messaging and buffer setup.
Definition: realtimecommspec.h:37
RealTimePlot(Curves *curves, const QStringList &connectionFiles)
Create a real-time plot generator based on the given connection file set.
A curve generation thread.
Definition: plotgenerator.h:84
PlotSource::Ptr source
The source.
Definition: realtimeplot.h:125
~RealTimePlotInfo()
Deletes the spec.
void appendLoad(const QStringList &connectionFiles)
Adds additional comm-specs to load (xml files).