Program Listing for File DdsIdVec1dBuffer.hpp¶
↰ Return to documentation for file (sinspekto/DdsIdVec1dBuffer.hpp
)
#pragma once
#include <memory>
#include "sinspekto/QtToDds.hpp"
#include "sinspekto/DdsBuffer.hpp"
class DdsIdVec1dBuffer : public DdsBuffer
{
Q_OBJECT
Q_PROPERTY(QPointF rangeX READ rangeX NOTIFY rangeChanged)
public:
explicit DdsIdVec1dBuffer(QObject *parent = nullptr);
virtual ~DdsIdVec1dBuffer();
QPointF rangeX() const;
Q_INVOKABLE void init(
QtToDds* dds,
const QString& topic,
const QString& id,
int buffer_size,
bool use_batch,
bool with_listener=true);
signals:
void rangeChanged(QPointF range, qml_enums::DimId dim);
void eventHeard();
void newData();
public slots:
virtual void updateBuffers();
private:
std::unique_ptr<sinspekto::Reader<fkin::IdVec1d>> m_reader;
std::unique_ptr<sinspekto::Reader<fkin::BatchIdVec1d>> m_batchReader;
QString m_id;
};