OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
QuantityDescriptionCurve.h
Go to the documentation of this file.
1#pragma once
3
4class __declspec(dllexport) QuantityDescriptionCurve : public QuantityDescription
5{
6public:
7 QuantityDescriptionCurve()
8 {
9 m_metadataQuantity.dataDimensions.push_back(1);
10 }
11
12 void setDataPoints(std::list<ot::Variable> _dataPoints)
13 {
14 m_dataPoints = std::vector<ot::Variable>{ _dataPoints.begin(), _dataPoints.end() };
15 }
16
17 void reserveDatapointSize(uint64_t _size)
18 {
19 m_dataPoints.reserve(_size);
20 }
21
22 void addDatapoint(ot::Variable& _variable)
23 {
24 m_dataPoints.push_back(_variable);
25 }
26
27 void addDatapoint(ot::Variable&& _variable)
28 {
29 m_dataPoints.push_back(std::move(_variable));
30 }
31 const std::vector<ot::Variable>& getDataPoints() const
32 {
33 return m_dataPoints;
34 }
35
36private:
37 std::vector<ot::Variable> m_dataPoints;
38};
Definition Variable.h:107