OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
QuantityContainerSerialiser.h
Go to the documentation of this file.
1#pragma once
2#include <stdint.h>
5
6#include "OTCore/CoreTypes.h"
7
12
14{
15public:
16
17 QuantityContainerSerialiser(const std::string& _collectionName, ResultImportLogger& _logger);
18
19 void storeDataPoints(ot::UID _seriesIndex, std::list<ot::UID>& _parameterIDs, std::list<ot::Variable>& _constParameterValues, std::list<std::list<ot::Variable>::const_iterator>& _changingParameterValues, const uint64_t _numberOfParameterValues, QuantityDescription* _quantityDescription);
21
22private:
23 DataStorageAPI::ResultDataStorageAPI m_dataStorageAccess;
24 void storeDataPoints(ot::UID _seriesIndex, std::list<ot::UID>& _parameterIDs, std::list<ot::Variable>& _constParameterValues, std::list<std::list<ot::Variable>::const_iterator>& _changingParameterValues, const uint64_t _numberOfParameterValues, QuantityDescriptionCurve* _quantityDescription);
25 void storeDataPoints(ot::UID _seriesIndex, std::list<ot::UID>& _parameterIDs, std::list<ot::Variable>& _constParameterValues, std::list<std::list<ot::Variable>::const_iterator>& _changingParameterValues, const uint64_t _numberOfParameterValues, QuantityDescriptionCurveComplex* _quantityDescription);
26 void storeDataPoints(ot::UID _seriesIndex, std::list<ot::UID>& _parameterIDs, std::list<ot::Variable>& _constParameterValues, std::list<std::list<ot::Variable>::const_iterator>& _changingParameterValues, const uint64_t _numberOfParameterValues, QuantityDescriptionSParameter* _quantityDescription);
27
28 ResultImportLogger& m_logger;
29 uint64_t m_bucketSize = 1;
30 const uint32_t m_bufferSize = 50;
31
32 std::vector<QuantityContainer> m_quantityContainer;
33
34 void addQuantityContainer(ot::UID _seriesIndex, std::list<ot::UID>& _parameterIDs, std::list<ot::Variable>&& _parameterValues, uint64_t _quantityIndex, const ot::Variable& _quantityValue);
35 void addQuantityContainer(ot::UID _seriesIndex, std::list<ot::UID>& _parameterIDs, std::list<ot::Variable>& _parameterValues, uint64_t _quantityIndex, const ot::Variable& _quantityValue);
36
37};
Definition QuantityContainerSerialiser.h:14
void storeDataPoints(ot::UID _seriesIndex, std::list< ot::UID > &_parameterIDs, std::list< ot::Variable > &_constParameterValues, std::list< std::list< ot::Variable >::const_iterator > &_changingParameterValues, const uint64_t _numberOfParameterValues, QuantityDescription *_quantityDescription)
Definition QuantityContainerSerialiser.cpp:11
QuantityContainerSerialiser(const std::string &_collectionName, ResultImportLogger &_logger)
Definition QuantityContainerSerialiser.cpp:4
void flushQuantityContainer()
Definition QuantityContainerSerialiser.cpp:209
Definition Variable.h:107
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27