OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
QuantityDescriptionMatrix.h
Go to the documentation of this file.
1#pragma once
4
5class __declspec(dllexport) QuantityDescriptionMatrix : public QuantityDescription
6{
7public:
8 QuantityDescriptionMatrix(const ot::MatrixEntryPointer& _matrixDimensions)
9 {
10 m_metadataQuantity.dataDimensions = { _matrixDimensions.m_row, _matrixDimensions.m_column };
11 }
12 QuantityDescriptionMatrix(const ot::MatrixEntryPointer& _matrixDimensions, uint64_t _reserveNumberOfEntries)
13 :QuantityDescriptionMatrix(_matrixDimensions)
14 {
15 m_quantityValues.reserve(_reserveNumberOfEntries);
16 }
17 void setValues(const std::vector<ot::GenericDataStructMatrix>& _values) { m_quantityValues = _values; };
18 void addToValues(const ot::GenericDataStructMatrix& _value) { m_quantityValues.push_back(_value); }
19 const std::vector<ot::GenericDataStructMatrix>& getValues() const { return m_quantityValues; }
20private:
21 std::vector<ot::GenericDataStructMatrix> m_quantityValues;
22};