OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
BlockHandlerStorage.h
Go to the documentation of this file.
1#pragma once
2#include "BlockHandler.h"
5#include "MetadataParameter.h"
6
8{
9public:
10 BlockHandlerStorage(EntityBlockStorage* blockEntity, const HandlerMap& handlerMap);
12
13 bool executeSpecialized() override;
14
15private:
16 EntityBlockStorage* m_blockEntityStorage;
17
18 std::list<ot::Connector> m_connectorsQuantity;
19 std::list<ot::Connector> m_connectorsParameter;
20 std::list<ot::Connector> m_connectorsMetadata;
21
22 bool allInputsAvailable();
23 std::list<DatasetDescription> createDatasets();
24
25 void extractQuantityProperties(const ot::Connector& _connector, std::string& _outName, std::string& _outUnit, std::string& _outType);
26 QuantityDescription* extractQuantityDescription(const ot::Connector& _connector, std::string& _outTypeName);
27 std::list<std::shared_ptr<ParameterDescription>> createAllParameter();
28 MetadataParameter extractParameter(const ot::Connector& _connector);
29};
Definition BlockHandler.h:10
std::map< std::shared_ptr< GraphNode >, std::shared_ptr< BlockHandler > > HandlerMap
Definition BlockHandler.h:12
Definition BlockHandlerStorage.h:8
~BlockHandlerStorage()
Definition BlockHandlerStorage.cpp:21
bool executeSpecialized() override
Definition BlockHandlerStorage.cpp:26
BlockHandlerStorage(EntityBlockStorage *blockEntity, const HandlerMap &handlerMap)
Definition BlockHandlerStorage.cpp:13