1#ifndef H_EXTENSIONS_CUTEHMI_DATAACQUISITION_1_INCLUDE_CUTEHMI_DATAACQUISITION_HISTORYWRITER_HPP
2#define H_EXTENSIONS_CUTEHMI_DATAACQUISITION_1_INCLUDE_CUTEHMI_DATAACQUISITION_HISTORYWRITER_HPP
4#include "internal/HistoryCollective.hpp"
5#include "internal/DbServiceableMixin.hpp"
6#include "AbstractWriter.hpp"
8#include <cutehmi/services/Serviceable.hpp>
13namespace dataacquisition {
25 static constexpr int INITIAL_INTERVAL = 100;
26 static constexpr int INITIAL_SAMPLES = 100;
34 Q_PROPERTY(
int interval READ interval WRITE setInterval NOTIFY intervalChanged)
42 Q_PROPERTY(
int samples READ samples WRITE setSamples NOTIFY samplesChanged)
48 void setInterval(
int interval);
52 void setSamples(
int samples);
101 void onValueAppend(
TagValue * tagValue)
override;
103 void onValueRemove(
TagValue * tagValue)
override;
106 void onSchemaChanged();
110 void adjustSamplingTimer();
112 void startSamplingTimer();
114 void stopSamplingTimer();
116 void confirmCollectiveFinished();
123 template <
typename T>
136 interval(INITIAL_INTERVAL),
137 samples(INITIAL_SAMPLES),
Abstract database writer.
Definition: AbstractWriter.hpp:28
Definition: HistoryWriter.hpp:18
Q_SIGNAL void insertValuesBegan()
Q_SIGNAL void collectiveFinished()
Q_SIGNAL void samplingTimerStopped()
Q_SIGNAL void initialized()
Q_SIGNAL void schemaValidatedFalse()
Q_SIGNAL void samplingTimerStarted()
Q_SIGNAL void schemaValidatedTrue()
Tag value.
Definition: TagValue.hpp:19
Definition: DbServiceableMixin.hpp:17
Definition: HistoryCollective.hpp:16
Definition: HistoryCollective.hpp:51