FlowArithmeticCalculator 1.0.0
Flow Arithmetic Calculator
Loading...
Searching...
No Matches
IBlockLifecycleManagerDelegate.h
Go to the documentation of this file.
1#ifndef BUSINESS_LOGIC_LOGIC_DELEGATE_IBLOCK_LIFECYCLE_MANAGER_DELEGATE_H
2#define BUSINESS_LOGIC_LOGIC_DELEGATE_IBLOCK_LIFECYCLE_MANAGER_DELEGATE_H
3
4#include <optional>
5
8
9// forward declaration
11 class BaseBlock;
12}
13
18 class
19 IBlockLifecycleManagerDelegate { // NOLINT(cppcoreguidelines-special-member-functions,hicpp-special-member-functions)
20 public:
22
28 virtual void onPortsConnected(
31
41
47 virtual bool isInputConnected(
49
55 };
56} // namespace business_logic::delegate
57
58#endif // BUSINESS_LOGIC_LOGIC_DELEGATE_IBLOCK_LIFECYCLE_MANAGER_DELEGATE_H
virtual bool isInputConnected(const business_logic::elements::structures::BlocksConnectionSide &side) const =0
Checks if the input port is connected to anything.
virtual void onBlockDeleted(const business_logic::elements::blocks::BaseBlock *block)=0
Called when a block is deleted.
virtual void onPortsConnected(const business_logic::elements::structures::BlocksConnectionSide &source, const business_logic::elements::structures::BlocksConnectionSide &dest)=0
Invoked when a connection is made between two ports + blocks (sides)
virtual bool hasConnectionBetween(const business_logic::elements::structures::BlocksConnectionSide &source, const business_logic::elements::structures::BlocksConnectionSide &dest) const =0
Checks if there is a connection between two entities.
The base class for all blocks, containing common functionality and members.
Definition BaseBlock.h:36
Delegates exposed by the business_logic module, used for integrating with a GUI / renderer implementa...
The base classes and structs for elements.