OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
BlockHandler Class Referenceabstract

#include "BlockHandler.h"

Inheritance diagram for BlockHandler:
BusinessLogicHandler BlockHandlerDataDimensionReducer BlockHandlerDatabaseAccess BlockHandlerDisplay BlockHandlerFileWriter BlockHandlerPlot1D BlockHandlerPython BlockHandlerStorage

Public Types

using HandlerMap = std::map<std::shared_ptr<GraphNode>, std::shared_ptr<BlockHandler>>
 

Public Member Functions

 BlockHandler (EntityBlock *blockEntity, const HandlerMap &allHandler)
 
virtual ~BlockHandler ()
 
void executeOwnNode (std::shared_ptr< GraphNode > ownNode)
 
virtual void setData (PipelineData &data, const std::string &targetPort)
 
- Public Member Functions inherited from BusinessLogicHandler
void setUIComponent (ot::components::UiComponent *ui)
 
void setModelComponent (ot::components::ModelComponent *model)
 
virtual ~BusinessLogicHandler ()
 

Protected Member Functions

virtual bool executeSpecialized ()=0
 
- Protected Member Functions inherited from BusinessLogicHandler
virtual void UIComponentWasSet ()
 
virtual void ModelComponentWasSet ()
 
void CheckEssentials ()
 
std::string CreateNewUniqueTopologyName (const std::string &folderName, const std::string &fileName)
 
std::string CreateNewUniqueTopologyNamePlainPossible (const std::string &folderName, const std::string &fileName, std::list< std::string > &additionallyTakenNames)
 
std::vector< std::string > CreateNewUniqueTopologyName (const std::string &FolderName, const std::string &fileName, uint64_t numberOfFiles)
 

Protected Attributes

std::string _blockName
 
std::map< std::string, PipelineData_dataPerPort
 
const std::string _errorMessageBase = "Block execution failed due to incompatible input data dimension. "
 
- Protected Attributes inherited from BusinessLogicHandler
ot::components::UiComponent_uiComponent = nullptr
 
ot::components::ModelComponent_modelComponent = nullptr
 

Member Typedef Documentation

◆ HandlerMap

using BlockHandler::HandlerMap = std::map<std::shared_ptr<GraphNode>, std::shared_ptr<BlockHandler>>

Constructor & Destructor Documentation

◆ BlockHandler()

BlockHandler::BlockHandler ( EntityBlock * blockEntity,
const HandlerMap & allHandler )

◆ ~BlockHandler()

BlockHandler::~BlockHandler ( )
virtual

Member Function Documentation

◆ executeOwnNode()

void BlockHandler::executeOwnNode ( std::shared_ptr< GraphNode > ownNode)

◆ executeSpecialized()

virtual bool BlockHandler::executeSpecialized ( )
protectedpure virtual

◆ setData()

void BlockHandler::setData ( PipelineData & data,
const std::string & targetPort )
virtual

Member Data Documentation

◆ _blockName

std::string BlockHandler::_blockName
protected

◆ _dataPerPort

std::map<std::string, PipelineData> BlockHandler::_dataPerPort
protected

◆ _errorMessageBase

const std::string BlockHandler::_errorMessageBase = "Block execution failed due to incompatible input data dimension. "
protected

The documentation for this class was generated from the following files: