DatabaseMeasurementWriter¶
Description¶
The DatabaseMeasurementWriter object encapsulates a LocalDatabase to store Measurement objects, mainly used for implementing MeasurementBufferDatabase.
This object was introduced in InCore 2.5.
› Inherits: | Object |
---|---|
› Inherited by: | MeasurementBufferDatabase |
Properties¶
database¶
This property holds a reference to the internal LocalDatabase instance used for storing the measurements.
This property was introduced in InCore 2.6.
› Type: | LocalDatabase |
---|---|
› Signal: | databaseChanged() |
› Attributes: | Readonly |
databaseTable¶
This property holds a reference to the internal DatabaseTable used for storing the measurements.
This property was introduced in InCore 2.6.
› Type: | DatabaseTable |
---|---|
› Signal: | databaseTableChanged() |
› Attributes: | Readonly |
measurements¶
This property holds a list of Measurement objects which to store in the database when calling store().
This property was introduced in InCore 2.6.
› Type: | List<DataObject> |
---|---|
› Signal: | measurementsChanged() |
› Attributes: | Readonly |
Methods¶
clear()¶
This method removes all stored Measurement objects from the database.
datasetCount()¶
This method returns the number of currently stored Measurement objects.
› Returns: | SignedInteger |
---|
store(Boolean dirtyOnly)¶
Signals¶
measurementsDataChanged(SignedInteger index)¶
This signal is emitted whenever the List.dataChanged() signal is emitted, i.e. the item at index
in the measurements list itself emitted the dataChanged() signal.