OpenCurves  0.9
rtmessage.h
1 //
2 // author Kazys Stepanas
3 //
4 // Copyright (c) CSIRO 2015
5 //
6 #ifndef RTMESSAGE_H_
7 #define RTMESSAGE_H_
8 
9 #include "ocurvesconfig.h"
10 
11 #include <QStringList>
12 
13 #include <vector>
14 
29 class RTMessage
30 {
31 public:
33  virtual ~RTMessage();
34 
37  virtual void setMessage(QByteArray &buffer) = 0;
38 
42  virtual int readMessage(const QByteArray &buffer) = 0;
43 
46  virtual QStringList headings() const = 0;
47 
55  virtual unsigned populateValues(std::vector<double> &values) const = 0;
56 };
57 
58 
59 #endif // RTMESSAGE_H_
virtual void setMessage(QByteArray &buffer)=0
Called to fill out the send buffer with the contained message.
Base message handling for real time data plot communications.
Definition: rtmessage.h:29
virtual unsigned populateValues(std::vector< double > &values) const =0
Request the latest values.
virtual ~RTMessage()
Virtual destructor.
virtual int readMessage(const QByteArray &buffer)=0
Called to read incoming data from the given buffer.
virtual QStringList headings() const =0
Request the list of headings for the plot.