OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
PropertyHandlerDatabaseAccessBlock.h
Go to the documentation of this file.
1#pragma once
2
3#include "OTCore/CoreTypes.h"
5#include "MetadataCampaign.h"
8#include <map>
9#include <memory>
10
12{
13public:
15
16 void performEntityUpdateIfRequired(std::shared_ptr<EntityBlockDatabaseAccess> _dbAccessEntity);
17 static ResultCollectionMetadataAccess* getResultCollectionMetadataAccess(EntityBlockDatabaseAccess* _dbAccessEntity, std::string& _collectionName);
18
19private:
20 using parameterUpdate = void (EntityBlockDatabaseAccess::*)(const std::string& _unit, const std::string& _type, EntityProperties& _properties);
21 const std::string m_selectedValueNone = "";
22
23
24 void updateSelectionIfNecessary(std::list<std::string>& _valuesInProject, EntityPropertiesSelection* _selection, EntityProperties& _properties);
25 std::list<std::string> updateQuantityIfNecessary(std::shared_ptr<EntityBlockDatabaseAccess> _dbAccessEntity, ResultCollectionMetadataAccess* _resultAccess, EntityProperties& _properties);
26 void updateParameterIfNecessary(const ResultCollectionMetadataAccess& _resultAccess, const ValueCharacteristicProperties& _selectedProperties, EntityProperties& _properties);
27 void resetValueCharacteristicLabelsIfNecessary(const ValueCharacteristicProperties& _selectedProperties, EntityProperties& _properties);
28 void resetValueCharacteristicLabelUnit(const ValueCharacteristicProperties& _selectedProperties, EntityProperties& _properties);
29 void resetValueCharacteristicLabelDataType(const ValueCharacteristicProperties& _selectedProperties, EntityProperties& _properties);
30
31 void requestPropertyUpdate(ot::UIDList entityIDs, const std::string& propertiesAsJSON);
32};
std::string string
Definition DocumentAccess.h:13
Common methods for all central service handler classes.
Definition BusinessLogicHandler.h:16
Definition PropertyHandlerDatabaseAccessBlock.h:12
void performEntityUpdateIfRequired(std::shared_ptr< EntityBlockDatabaseAccess > _dbAccessEntity)
Definition PropertyHandlerDatabaseAccessBlock.cpp:15
static ResultCollectionMetadataAccess * getResultCollectionMetadataAccess(EntityBlockDatabaseAccess *_dbAccessEntity, std::string &_collectionName)
Definition PropertyHandlerDatabaseAccessBlock.cpp:107
std::list< UID > UIDList
Unique identifier list.
Definition CoreTypes.h:31
STL namespace.