Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CLogicsDrawingAreaModel Class Reference

#include <CLogicsDrawingAreaModel.hpp>

Collaboration diagram for CLogicsDrawingAreaModel:
[legend]

Public Types

enum class  EActionOnLogicsComponent {
  ChangeOrderOfExecution , ConstState , Delete , Join ,
  Paste , Properties , SelectConnections , SelectInsideBlocks ,
  SelectChannel , SplitHorizontal , SplitVertical , LoadLibrary ,
  ZoomFit , First = ChangeOrderOfExecution , Last = ZoomFit
}
 
typedef std::map< AbstractCanvasItem::TId, std::shared_ptr< AbstractLogicsElement > > TMapIdElement
 
typedef std::unordered_map< std::string, AbstractCanvasItem::TIdTMapLabelId
 
typedef std::unordered_map< std::string, AbstractCanvasItem::TIdTMapLibraryIOBlockId
 

Public Member Functions

 CLogicsDrawingAreaModel (std::optional< iv::types::unitId > logicUnitId=std::nullopt, std::optional< iv::types::logic::customBlockId > customBlockId=std::nullopt)
 
 ~CLogicsDrawingAreaModel ()=default
 
 CLogicsDrawingAreaModel (const CLogicsDrawingAreaModel &other)=delete
 
 CLogicsDrawingAreaModel (CLogicsDrawingAreaModel &&other)=delete
 
CLogicsDrawingAreaModeloperator= (const CLogicsDrawingAreaModel &other)=delete
 
CLogicsDrawingAreaModeloperator= (CLogicsDrawingAreaModel &&other)=delete
 
void addLogicsElement (AbstractCanvasItem::TId id, const std::shared_ptr< AbstractLogicsElement > &logicsElement)
 
void deleteLogicsElement (AbstractCanvasItem::TId id)
 
void changeOrderOfExecution (iv::types::logic::logicExecutionOrder oldOrder, iv::types::logic::logicExecutionOrder newOrder)
 
std::shared_ptr< CLogicFilegenerateCLogicFileObject (uint32_t logicId) const
 
std::shared_ptr< iv::logic::UnitParamsOnlinegenerateUnitParamsOnline (uint32_t logicId) const
 
LogicLibraryInfo generateLogicLibraryInfo (const CLogicsAllowed::TMapDBBlockParamNStr &mapBlockParamsDesc) const
 
CLogicsAllowed::TMapDBBlockParamNStr getLibraryParametersDesc () const
 
CLogicsAllowed::TMapDBBlockParamNStr getLibraryExternalParametersValues () const
 
void read (const iv::file::xml::File &fileXml)
 
void readInfoLogic (const iv::file::xml::File &fileXml)
 
void save (iv::file::xml::File &fileXml) const
 
bool saveLogicLedFiles (const std::string &projectFolder, uint16_t logicUnitId) const
 
void checkIntegrity (AbstractLog *logger) const
 
void updateLogicsElements ()
 
void checkAndFixIntegrity ()
 
void setFlagProjectJustLoaded (bool flag)
 
bool getFlagProjectJustLoaded () const
 
iv::logic::InfoLogicTxtgetInfoLogicPtr ()
 
void setInfoLogic (const iv::logic::InfoLogicTxt &infoLogicTxt)
 
std::shared_ptr< const AbstractLogicsElementgetLogicsElement (AbstractCanvasItem::TId id) const
 
std::shared_ptr< AbstractLogicsElementgetLogicsElement (AbstractCanvasItem::TId id)
 
std::set< AbstractCanvasItem::TIdgetLogicsElementsIds () const
 
AbstractCanvasItem::TId getNextIdInc ()
 
bool addCustomBlockInfo (const iv::logic::LogicLibraryIOInfo &info) const
 
std::map< iv::types::logic::libraryIOId, std::shared_ptr< iv::logic::LogicLibraryIOInfo > > getCustomBlockInInfos () const
 
std::weak_ptr< iv::logic::LogicLibraryIOInfogetCustomBlockInInfo (const iv::types::logic::libraryIOId &id) const
 
bool updateCustomBlockInInfo (const iv::types::logic::libraryIOId &id, const iv::logic::LogicLibraryIOInfo &info) const
 
bool removeCustomBlockInInfo (const iv::types::logic::libraryIOId &id) const
 
std::map< iv::types::logic::libraryIOId, std::shared_ptr< iv::logic::LogicLibraryIOInfo > > getCustomBlockOutInfos () const
 
std::weak_ptr< iv::logic::LogicLibraryIOInfogetCustomBlockOutInfo (const iv::types::logic::libraryIOId &id) const
 
bool updateCustomBlockOutInfo (const iv::types::logic::libraryIOId &id, const iv::logic::LogicLibraryIOInfo &info) const
 
bool removeCustomBlockOutInfo (const iv::types::logic::libraryIOId &id) const
 
iv::types::logic::logicExecutionOrder getNextOrderOfExecution () const
 
iv::types::logic::logicExecutionOrder getNextOrderOfExecutionInc ()
 
iv::types::logic::logicExecutionOrder getOrderOfExecution (AbstractCanvasItem::TId id) const
 
void addUniqueLabel (const std::string &labelName, AbstractCanvasItem::TId lEId)
 
void deleteUniqueLabel (const std::string &labelName, CLogicsComponentLabel::ELabelIOType labelIOType)
 
bool existUniqueLabel (const std::string &labelName) const
 
std::set< AbstractCanvasItem::TIdfindChannelsLabelsAndIOBlocks () const
 
std::string getUniqueLabelDescription (const std::string &labelName)
 
std::string getFirstUniqueCreatedLabelName () const
 
std::string getNextDefaultUniqueLabelNameInc ()
 
void updateUniqueLabel (const std::string &oldLabelName, const std::string &newLabelName, const std::string &newDescription)
 
void updateUnsetLabels (const std::string &newLabelName)
 
void updateBasicBlockValues (AbstractCanvasItem::TId itemId)
 
void clearBasicBlocksParamValue (AbstractCanvasItem::TId itemRemovingId)
 
std::shared_ptr< AbstractLogicsElementgetAbstractLogicElement (AbstractCanvasItem::TId id) const
 
std::shared_ptr< iv::logic::component::LogicTextgetLogicsText (AbstractCanvasItem::TId id) const
 
std::shared_ptr< iv::logic::component::LogicRectanglegetLogicsRectangle (AbstractCanvasItem::TId id) const
 
std::shared_ptr< CLogicsComponentgetLogicsComponent (AbstractCanvasItem::TId id) const
 
std::shared_ptr< CLogicsComponentOthersgetLogicsComponentOthers (AbstractCanvasItem::TId id) const
 
std::shared_ptr< CLogicsComponentConstantgetLogicsComponentConstant (AbstractCanvasItem::TId id) const
 
std::shared_ptr< CLogicsComponentChannelgetLogicsComponentChannel (AbstractCanvasItem::TId id) const
 
std::shared_ptr< LogicComponentBroadCastChannelgetLogicsComponentBroadCastChannel (AbstractCanvasItem::TId id) const
 
std::shared_ptr< CLogicsComponentLabelgetLogicsComponentLabel (AbstractCanvasItem::TId id) const
 
std::shared_ptr< CLogicsConnectiongetLogicsComponentConnection (AbstractCanvasItem::TId id) const
 
std::shared_ptr< CLogicsConnectionPointgetLogicsComponentConnectionPoint (AbstractCanvasItem::TId id) const
 
std::shared_ptr< CLogicsComponentLibraryInOutBlockgetLogicsComponentLibraryIOBlock (AbstractCanvasItem::TId id) const
 
std::shared_ptr< CLogicsComponentExecgetLogicsComponentExec (AbstractCanvasItem::TId id) const
 
std::shared_ptr< CLogicsComponentLibrarygetLogicsComponentLibraryBlock (AbstractCanvasItem::TId id) const
 
bool isItemCopyable (AbstractCanvasItem::TId id) const
 
bool isItemLogicText (AbstractCanvasItem::TId id) const
 
bool isItemLogicRectangle (AbstractCanvasItem::TId id) const
 
bool isItemLogicComponent (AbstractCanvasItem::TId id) const
 
bool isItemChannelOrLabelOrIOBlock (AbstractCanvasItem::TId id) const
 
bool isItemIOBlock (AbstractCanvasItem::TId id) const
 
bool isItemBasicBlock (AbstractCanvasItem::TId id) const
 
bool isItemLibraryBlock (AbstractCanvasItem::TId id) const
 
bool isItemExecBlock (AbstractCanvasItem::TId id) const
 
bool isItemBasicOrLibraryBlock (AbstractCanvasItem::TId id) const
 
bool isItemChannel (AbstractCanvasItem::TId id) const
 
bool isItemConstant (AbstractCanvasItem::TId id) const
 
bool isItemBroadCastChannel (AbstractCanvasItem::TId id) const
 
bool isItemLabel (AbstractCanvasItem::TId id) const
 
bool isItemLibraryIOBlock (AbstractCanvasItem::TId id) const
 
bool isItemMovable (AbstractCanvasItem::TId id) const
 
bool isLogicEmpty () const
 
bool isLogicCompletelyConnected () const
 
void setCustomBlockId (std::optional< iv::types::logic::customBlockId > customBlockId)
 
void setInfoLogicTxtDataFileAndDate (const std::string &fileName)
 
void updateLogicsChannels ()
 
const TMapIdElementgetElementsMap () const
 
void checkAllConnections (const std::shared_ptr< CFormulaLogic > &formulaOptRef)
 
void checkAllStationConnections (const std::vector< std::shared_ptr< iv::logic::formulaLogic::SBlock > > &logicBlocks)
 
std::string getLibraryFilePath () const
 
std::set< iv::types::logic::libraryTagNamegetAllLibraryBlockTagnames () const
 
std::set< std::string > getLabelsNames () const
 
std::optional< iv::types::unitIdgetLogicUnitId () const
 
std::optional< iv::types::logic::customBlockIdgetCustomBlockId () const
 
std::shared_ptr< iv::logic::CustomBlockIOInfosgetCustomBlockIOInfos () const
 
std::vector< std::weak_ptr< iv::channels::AbstractChannel > > getChannels () const
 

Static Public Member Functions

static std::shared_ptr< CLogicsDrawingAreaModelledFileToCLogicsDrawingAreaModel (const std::string &file, std::optional< iv::types::unitId > logicUnitId=std::nullopt, std::optional< iv::types::logic::customBlockId > customBlockId=std::nullopt)
 
static std::shared_ptr< iv::logic::component::LogicTextgetLogicsText (const std::shared_ptr< AbstractLogicsElement > &logicsElement)
 
static std::shared_ptr< iv::logic::component::LogicRectanglegetLogicsRectangle (const std::shared_ptr< AbstractLogicsElement > &logicsElement)
 
static std::shared_ptr< CLogicsComponentgetLogicsComponent (const std::shared_ptr< AbstractLogicsElement > &logicsElement)
 
static std::shared_ptr< CLogicsComponentOthersgetLogicsComponentOthers (const std::shared_ptr< AbstractLogicsElement > &logicsElement)
 
static std::shared_ptr< CLogicsComponentConstantgetLogicsComponentConstant (const std::shared_ptr< AbstractLogicsElement > &logicsElement)
 
static std::shared_ptr< CLogicsComponentChannelgetLogicsComponentChannel (const std::shared_ptr< AbstractLogicsElement > &logicsElement)
 
static std::shared_ptr< LogicComponentBroadCastChannelgetLogicsComponentBroadCastChannel (const std::shared_ptr< AbstractLogicsElement > &logicsElement)
 
static std::shared_ptr< CLogicsComponentLabelgetLogicsComponentLabel (const std::shared_ptr< AbstractLogicsElement > &logicsElement)
 
static std::shared_ptr< CLogicsConnectiongetLogicsComponentConnection (const std::shared_ptr< AbstractLogicsElement > &logicsElement)
 
static std::shared_ptr< CLogicsConnectionPointgetLogicsComponentConnectionPoint (const std::shared_ptr< AbstractLogicsElement > &logicsElement)
 
static std::shared_ptr< CLogicsComponentLibraryInOutBlockgetLogicsComponentLibraryIOBlock (const std::shared_ptr< AbstractLogicsElement > &logicsElement)
 
static std::shared_ptr< CLogicsComponentExecgetLogicsComponentExec (const std::shared_ptr< AbstractLogicsElement > &logicsElement)
 
static std::shared_ptr< CLogicsComponentLibrarygetLogicsComponentLibraryBlock (const std::shared_ptr< AbstractLogicsElement > &logicsElement)
 
static bool isItemLogicText (const std::shared_ptr< const AbstractLogicsElement > &component)
 
static bool isItemLogicRectangle (const std::shared_ptr< const AbstractLogicsElement > &component)
 
static bool isItemLogicComponent (const std::shared_ptr< const AbstractLogicsElement > &component)
 
static bool isItemIOBlock (const std::shared_ptr< const AbstractLogicsElement > &component)
 
static bool isItemBasicBlock (const std::shared_ptr< const AbstractLogicsElement > &component)
 
static bool isItemLibraryBlock (const std::shared_ptr< const AbstractLogicsElement > &component)
 
static bool isItemExecBlock (const std::shared_ptr< const AbstractLogicsElement > &component)
 
static bool isItemBasicOrLibraryBlock (const std::shared_ptr< const AbstractLogicsElement > &component)
 
static bool isItemChannel (const std::shared_ptr< const AbstractLogicsElement > &component)
 
static bool isItemConstant (const std::shared_ptr< const AbstractLogicsElement > &component)
 
static bool isItemBroadCastChannel (const std::shared_ptr< const AbstractLogicsElement > &component)
 
static bool isItemLabel (const std::shared_ptr< const AbstractLogicsElement > &component)
 
static bool isItemLibraryIOBlock (const std::shared_ptr< const AbstractLogicsElement > &component)
 
static void checkConnections (iv::logic::formulaLogic::SBlock &block, const std::shared_ptr< CLogicsComponent > &component)
 

Private Member Functions

void checkRepeatedOrderOfExecution (AbstractLog *logger) const
 
void checkInvertedOrderOfExecutions (AbstractLog *logger) const
 
void checkLibraryBlocksRepeatedOrderOfExecution (AbstractLog *logger) const
 
void checkLibraryBlocksOrderOfExecution (AbstractLog *logger) const
 
void checkDefinedLibraryInParamNotUsed (AbstractLog *logger) const
 
void checkDefinedLibraryOutParamNotUsed (AbstractLog *logger) const
 
void prvSaveLibraryInputs (iv::file::xml::node &nodeDataLogic) const
 
void prvSaveLibraryOutputs (iv::file::xml::node &nodeDataLogic) const
 
void prvClearConnectionPointParameter (std::shared_ptr< CLogicsConnectionPoint > connectionPoint) const
 
ELibraryLogicBlockParamConnectedType prvGetLibraryLogicBlockParamConnectedTypeForParameter (const std::shared_ptr< CLogicsComponentLibrary > &componentLibraryRef, iv::logic::ParamId paramId) const
 
void prvUpdateLibraryBlockExternalParams (const std::shared_ptr< CLogicsComponentLibrary > &componentLibraryRef) const
 
CFormulaLogicprvGenerateCLogicFileObjectLomData (uint32_t unitId, const CLogicsAllowed &logicsAllowed) const
 
bool prvGenerateCLogicFileObjectLomDataParams (uint32_t unitId, const std::shared_ptr< CLogicsComponentExec > &currentLogicComponentExec, const CLogicsAllowed &logicsAllowed, iv::logic::formulaLogic::SBlock &blockRef, std::string &error, uint16_t &blockWrittenIndex) const
 
bool prvGenerateCLogicFileObjectLomDataLibrary (uint32_t unitId, const LogicLibraryInfo &currentLibraryInfo, const CLogicsAllowed &logicsAllowed, iv::logic::formulaLogic::SBlock &libraryBlocksRef, std::string &error, uint16_t &blockWrittenIndex) const
 
bool prvGenerateCLogicFileObjectLomDataLibraryBlockParams (uint32_t unitId, const SLibraryLogicBlock &currentBlock, const CLogicsAllowed &logicsAllowed, iv::logic::formulaLogic::SBlock &blockRef, std::string &error, uint16_t &blockWrittenIndex) const
 
std::shared_ptr< iv::logic::UnitParamsOnlineprvGenerateCParamOnLineListObject (uint32_t unitId, CFormulaLogic *formulaLogic) const
 
bool prvGenerateCParamOnlineListObjectBlockLibrary (const iv::logic::formulaLogic::SBlock &logicBlock, uint32_t unitId, const std::string &libraryBlockTagName, uint32_t &onlineParamOrderInLogicOut, const std::shared_ptr< iv::logic::LibraryParamsOnline > &libraryParamsOnlineOut) const
 
CLogicsComponentConstantprvGetCLogicsComponentConstant (AbstractCanvasItem::TId id) const
 
void prvSetConnectionValues (const std::shared_ptr< CLogicsConnectionPoint > &basicBlockConnectionPoint, const std::shared_ptr< CLogicsConnectionPoint > &connectedConnectionPoint)
 
void prvSetConnectionValues (const std::shared_ptr< CLogicsConnection > &connection)
 
void prvPostReadProcessing ()
 
void prvPostReadProcessingConnection (const std::shared_ptr< AbstractLogicsElement > &lE)
 
void prvPostReadProcessingConnectionPoint (const std::shared_ptr< AbstractLogicsElement > &lE) const
 
void prvSetComponentExecBlockParams (AbstractCanvasItem::TId itemId)
 
void prvSetConnectionComponentMI (const std::shared_ptr< CLogicsConnectionPoint > &connectionPoint, uint32_t currentMI) const
 
bool prvSetIdOutputPins () const
 
std::string prvFormatParameterLogicDrawing (const iv::logic::formulaLogic::SBlockParam &pPar, const std::shared_ptr< AbstractLogicsElement > &logicComponent, uint32_t globalIdOrValueParameter) const
 
std::string prvFormatExternalParameterBlocksInLibraryLogicsDrawing (const iv::logic::formulaLogic::SBlockParam &pPar, const std::shared_ptr< AbstractLogicsElement > &logicComponent, uint32_t globalIdOrValueParameter) const
 
std::string prvFormatParameterLogicLibraryInfo (const iv::logic::formulaLogic::SBlockParam &pPar, const SLibraryLogicBlockParam &libraryLogicBlockParam, uint32_t globalIdOrValueParameter) const
 
std::string prvFormatEditParameterLogicLibraryInfo (const iv::logic::formulaLogic::SBlockParam &pPar, uint32_t globalIdOrValueParameter, uint32_t blockOrder) const
 
std::string prvFormatExternalParameterBlocksInLibraryLogicLibraryInfo (const iv::logic::formulaLogic::SBlockParam &pPar, const SLibraryLogicBlockParam &libraryLogicBlockParam, uint32_t globalIdOrValueParameter) const
 
void prvUpdateComponent (const std::shared_ptr< CLogicsComponent > &lComponent)
 
void prvUpdateLabels (const std::string &oldLabelName, const std::string &newLabelName, const std::string &newLabelDescription)
 
void prvUpdateOrdersOfExecution (EActionOnLogicsComponent lastAction, iv::types::logic::logicExecutionOrder oldOrder, iv::types::logic::logicExecutionOrder newOrder=AbstractCanvasItem::kInvalidCanvasItemId)
 
uint32_t prvFindParameterValue (const std::shared_ptr< CLogicsComponentExec > &lcExec, iv::logic::eDBBlockParamType blockParamType, iv::types::logic::paramNumber parameterNumber, const std::string &paramDescription, std::string &paramValueText, uint32_t &channelUnitId, uint16_t &channelId, std::string &channelType, std::string &description, std::string &error) const
 
std::string prvFindSParameterValue (const std::shared_ptr< CLogicsComponentExec > &lcExec, iv::logic::eDBBlockParamType blockParamType, iv::types::logic::paramNumber paramNum, bool isLibrary, const std::string &paramValue, std::string &error) const
 
uint32_t prvFindParameterValueInLib (const SLibraryLogicBlockParam &blockParam, const SLibraryLogicBlock &blockRef, std::string &paramValueText, uint32_t &channelUnitId, uint16_t &channelId, std::string &channelType, std::string &description, std::string &error) const
 
std::shared_ptr< CLogicsConnectionPointprvGetOppositeConnectionPointFromPoint (AbstractCanvasItem::TId tId) const
 
std::string prvGetBlockDescription (const std::shared_ptr< AbstractLogicsElement > &block, const std::shared_ptr< CLogicsConnectionPoint > &connectionPoint)
 
void deleteLogicElementFromCanvas (std::vector< std::string > logicChannelsToDelete, IGraphics *graphics)
 

Static Private Member Functions

static std::map< iv::types::logic::libraryIOId, iv::logic::LogicLibraryIOInfoprvReadLibraryInputs (const iv::file::xml::node &nodeDataLogic)
 
static std::map< iv::types::logic::libraryIOId, iv::logic::LogicLibraryIOInfoprvReadLibraryOutputs (const iv::file::xml::node &nodeDataLogic)
 
static bool prvGenerateCParamOnlineListObjectBlockParams (const iv::logic::formulaLogic::SBlock &logicBlock, uint32_t unitId, const std::string &libraryBlockTagName, uint32_t &onlineParamOrderInLogicOut, const std::shared_ptr< iv::logic::LibraryParamsOnline > &libraryParamsOnlineOut)
 
static uint32_t prvGetComponentIdOfOppositeConnectionPoint (const std::shared_ptr< CLogicsComponentExec > &pExec, iv::logic::eDBBlockParamType type, iv::types::logic::paramNumber paramNum)
 

Private Attributes

TMapLabelId m_mapUniqueLabelId
 
TMapIdElement m_mapIdElement
 
std::shared_ptr< iv::logic::CustomBlockIOInfosm_libraryIOInfos
 
AbstractCanvasItem::TId m_nextIdToUse
 
iv::types::logic::logicExecutionOrder m_nextOrderOfExecution
 
CLogicsComponentLabel::TUniqueLabelDefaultIdNumber m_nextUniqueLabelDefaultIdNumber
 
iv::logic::InfoLogicTxt m_infoLogic
 
std::optional< iv::types::unitIdm_logicUnitId
 
std::optional< iv::types::logic::customBlockIdm_customBlockId
 
bool m_flagProjectJustLoaded
 

Member Typedef Documentation

◆ TMapIdElement

◆ TMapLabelId

◆ TMapLibraryIOBlockId

Member Enumeration Documentation

◆ EActionOnLogicsComponent

Enumerator
ChangeOrderOfExecution 
ConstState 
Delete 
Join 
Paste 
Properties 
SelectConnections 
SelectInsideBlocks 
SelectChannel 
SplitHorizontal 
SplitVertical 
LoadLibrary 
ZoomFit 
First 
Last 

Constructor & Destructor Documentation

◆ CLogicsDrawingAreaModel() [1/3]

CLogicsDrawingAreaModel::CLogicsDrawingAreaModel ( std::optional< iv::types::unitId > logicUnitId = std::nullopt,
std::optional< iv::types::logic::customBlockId > customBlockId = std::nullopt )
explicit

◆ ~CLogicsDrawingAreaModel()

CLogicsDrawingAreaModel::~CLogicsDrawingAreaModel ( )
default

◆ CLogicsDrawingAreaModel() [2/3]

CLogicsDrawingAreaModel::CLogicsDrawingAreaModel ( const CLogicsDrawingAreaModel & other)
delete

◆ CLogicsDrawingAreaModel() [3/3]

CLogicsDrawingAreaModel::CLogicsDrawingAreaModel ( CLogicsDrawingAreaModel && other)
delete

Member Function Documentation

◆ addCustomBlockInfo()

bool CLogicsDrawingAreaModel::addCustomBlockInfo ( const iv::logic::LogicLibraryIOInfo & info) const

◆ addLogicsElement()

void CLogicsDrawingAreaModel::addLogicsElement ( AbstractCanvasItem::TId id,
const std::shared_ptr< AbstractLogicsElement > & logicsElement )

◆ addUniqueLabel()

void CLogicsDrawingAreaModel::addUniqueLabel ( const std::string & labelName,
AbstractCanvasItem::TId lEId )

◆ changeOrderOfExecution()

void CLogicsDrawingAreaModel::changeOrderOfExecution ( iv::types::logic::logicExecutionOrder oldOrder,
iv::types::logic::logicExecutionOrder newOrder )

◆ checkAllConnections()

void CLogicsDrawingAreaModel::checkAllConnections ( const std::shared_ptr< CFormulaLogic > & formulaOptRef)

◆ checkAllStationConnections()

void CLogicsDrawingAreaModel::checkAllStationConnections ( const std::vector< std::shared_ptr< iv::logic::formulaLogic::SBlock > > & logicBlocks)

◆ checkAndFixIntegrity()

void CLogicsDrawingAreaModel::checkAndFixIntegrity ( )

◆ checkConnections()

void CLogicsDrawingAreaModel::checkConnections ( iv::logic::formulaLogic::SBlock & block,
const std::shared_ptr< CLogicsComponent > & component )
static

◆ checkDefinedLibraryInParamNotUsed()

void CLogicsDrawingAreaModel::checkDefinedLibraryInParamNotUsed ( AbstractLog * logger) const
private

◆ checkDefinedLibraryOutParamNotUsed()

void CLogicsDrawingAreaModel::checkDefinedLibraryOutParamNotUsed ( AbstractLog * logger) const
private

◆ checkIntegrity()

void CLogicsDrawingAreaModel::checkIntegrity ( AbstractLog * logger) const

◆ checkInvertedOrderOfExecutions()

void CLogicsDrawingAreaModel::checkInvertedOrderOfExecutions ( AbstractLog * logger) const
private

◆ checkLibraryBlocksOrderOfExecution()

void CLogicsDrawingAreaModel::checkLibraryBlocksOrderOfExecution ( AbstractLog * logger) const
private

◆ checkLibraryBlocksRepeatedOrderOfExecution()

void CLogicsDrawingAreaModel::checkLibraryBlocksRepeatedOrderOfExecution ( AbstractLog * logger) const
private

◆ checkRepeatedOrderOfExecution()

void CLogicsDrawingAreaModel::checkRepeatedOrderOfExecution ( AbstractLog * logger) const
private

Integrity checks

◆ clearBasicBlocksParamValue()

void CLogicsDrawingAreaModel::clearBasicBlocksParamValue ( AbstractCanvasItem::TId itemRemovingId)

◆ deleteLogicElementFromCanvas()

void CLogicsDrawingAreaModel::deleteLogicElementFromCanvas ( std::vector< std::string > logicChannelsToDelete,
IGraphics * graphics )
private

◆ deleteLogicsElement()

void CLogicsDrawingAreaModel::deleteLogicsElement ( AbstractCanvasItem::TId id)

◆ deleteUniqueLabel()

void CLogicsDrawingAreaModel::deleteUniqueLabel ( const std::string & labelName,
CLogicsComponentLabel::ELabelIOType labelIOType )

◆ existUniqueLabel()

bool CLogicsDrawingAreaModel::existUniqueLabel ( const std::string & labelName) const

◆ findChannelsLabelsAndIOBlocks()

std::set< AbstractCanvasItem::TId > CLogicsDrawingAreaModel::findChannelsLabelsAndIOBlocks ( ) const

◆ generateCLogicFileObject()

std::shared_ptr< CLogicFile > CLogicsDrawingAreaModel::generateCLogicFileObject ( uint32_t logicId) const

◆ generateLogicLibraryInfo()

LogicLibraryInfo CLogicsDrawingAreaModel::generateLogicLibraryInfo ( const CLogicsAllowed::TMapDBBlockParamNStr & mapBlockParamsDesc) const

Cuando se crea un bloque de librería, se crea el LibraryInfo asociado a la librería (sin conexiones)

Parameters
mapBlockParamsDesc
Returns

◆ generateUnitParamsOnline()

std::shared_ptr< iv::logic::UnitParamsOnline > CLogicsDrawingAreaModel::generateUnitParamsOnline ( uint32_t logicId) const

◆ getAbstractLogicElement()

std::shared_ptr< AbstractLogicsElement > CLogicsDrawingAreaModel::getAbstractLogicElement ( AbstractCanvasItem::TId id) const

◆ getAllLibraryBlockTagnames()

std::set< iv::types::logic::libraryTagName > CLogicsDrawingAreaModel::getAllLibraryBlockTagnames ( ) const

◆ getChannels()

std::vector< std::weak_ptr< iv::channels::AbstractChannel > > CLogicsDrawingAreaModel::getChannels ( ) const

◆ getCustomBlockId()

std::optional< iv::types::logic::customBlockId > CLogicsDrawingAreaModel::getCustomBlockId ( ) const

◆ getCustomBlockInInfo()

std::weak_ptr< iv::logic::LogicLibraryIOInfo > CLogicsDrawingAreaModel::getCustomBlockInInfo ( const iv::types::logic::libraryIOId & id) const

◆ getCustomBlockInInfos()

std::map< iv::types::logic::libraryIOId, std::shared_ptr< iv::logic::LogicLibraryIOInfo > > CLogicsDrawingAreaModel::getCustomBlockInInfos ( ) const

◆ getCustomBlockIOInfos()

std::shared_ptr< iv::logic::CustomBlockIOInfos > CLogicsDrawingAreaModel::getCustomBlockIOInfos ( ) const

◆ getCustomBlockOutInfo()

std::weak_ptr< iv::logic::LogicLibraryIOInfo > CLogicsDrawingAreaModel::getCustomBlockOutInfo ( const iv::types::logic::libraryIOId & id) const

◆ getCustomBlockOutInfos()

std::map< iv::types::logic::libraryIOId, std::shared_ptr< iv::logic::LogicLibraryIOInfo > > CLogicsDrawingAreaModel::getCustomBlockOutInfos ( ) const

◆ getElementsMap()

const CLogicsDrawingAreaModel::TMapIdElement * CLogicsDrawingAreaModel::getElementsMap ( ) const

◆ getFirstUniqueCreatedLabelName()

std::string CLogicsDrawingAreaModel::getFirstUniqueCreatedLabelName ( ) const

◆ getFlagProjectJustLoaded()

bool CLogicsDrawingAreaModel::getFlagProjectJustLoaded ( ) const

◆ getInfoLogicPtr()

iv::logic::InfoLogicTxt * CLogicsDrawingAreaModel::getInfoLogicPtr ( )

◆ getLabelsNames()

std::set< std::string > CLogicsDrawingAreaModel::getLabelsNames ( ) const

◆ getLibraryExternalParametersValues()

CLogicsAllowed::TMapDBBlockParamNStr CLogicsDrawingAreaModel::getLibraryExternalParametersValues ( ) const

◆ getLibraryFilePath()

std::string CLogicsDrawingAreaModel::getLibraryFilePath ( ) const

◆ getLibraryParametersDesc()

CLogicsAllowed::TMapDBBlockParamNStr CLogicsDrawingAreaModel::getLibraryParametersDesc ( ) const

◆ getLogicsComponent() [1/2]

std::shared_ptr< CLogicsComponent > CLogicsDrawingAreaModel::getLogicsComponent ( AbstractCanvasItem::TId id) const

◆ getLogicsComponent() [2/2]

std::shared_ptr< CLogicsComponent > CLogicsDrawingAreaModel::getLogicsComponent ( const std::shared_ptr< AbstractLogicsElement > & logicsElement)
static

◆ getLogicsComponentBroadCastChannel() [1/2]

std::shared_ptr< LogicComponentBroadCastChannel > CLogicsDrawingAreaModel::getLogicsComponentBroadCastChannel ( AbstractCanvasItem::TId id) const

◆ getLogicsComponentBroadCastChannel() [2/2]

std::shared_ptr< LogicComponentBroadCastChannel > CLogicsDrawingAreaModel::getLogicsComponentBroadCastChannel ( const std::shared_ptr< AbstractLogicsElement > & logicsElement)
static

◆ getLogicsComponentChannel() [1/2]

std::shared_ptr< CLogicsComponentChannel > CLogicsDrawingAreaModel::getLogicsComponentChannel ( AbstractCanvasItem::TId id) const

CLogicsDrawingAreaModel::getLogicsComponentChannel

Returns a pointer to the logics component if the id refers to a component that a CLogicsComponentChannel; nullptr otherwise.

◆ getLogicsComponentChannel() [2/2]

std::shared_ptr< CLogicsComponentChannel > CLogicsDrawingAreaModel::getLogicsComponentChannel ( const std::shared_ptr< AbstractLogicsElement > & logicsElement)
static

◆ getLogicsComponentConnection() [1/2]

std::shared_ptr< CLogicsConnection > CLogicsDrawingAreaModel::getLogicsComponentConnection ( AbstractCanvasItem::TId id) const

◆ getLogicsComponentConnection() [2/2]

std::shared_ptr< CLogicsConnection > CLogicsDrawingAreaModel::getLogicsComponentConnection ( const std::shared_ptr< AbstractLogicsElement > & logicsElement)
static

◆ getLogicsComponentConnectionPoint() [1/2]

std::shared_ptr< CLogicsConnectionPoint > CLogicsDrawingAreaModel::getLogicsComponentConnectionPoint ( AbstractCanvasItem::TId id) const

◆ getLogicsComponentConnectionPoint() [2/2]

std::shared_ptr< CLogicsConnectionPoint > CLogicsDrawingAreaModel::getLogicsComponentConnectionPoint ( const std::shared_ptr< AbstractLogicsElement > & logicsElement)
static

◆ getLogicsComponentConstant() [1/2]

std::shared_ptr< CLogicsComponentConstant > CLogicsDrawingAreaModel::getLogicsComponentConstant ( AbstractCanvasItem::TId id) const

◆ getLogicsComponentConstant() [2/2]

std::shared_ptr< CLogicsComponentConstant > CLogicsDrawingAreaModel::getLogicsComponentConstant ( const std::shared_ptr< AbstractLogicsElement > & logicsElement)
static

◆ getLogicsComponentExec() [1/2]

std::shared_ptr< CLogicsComponentExec > CLogicsDrawingAreaModel::getLogicsComponentExec ( AbstractCanvasItem::TId id) const

◆ getLogicsComponentExec() [2/2]

std::shared_ptr< CLogicsComponentExec > CLogicsDrawingAreaModel::getLogicsComponentExec ( const std::shared_ptr< AbstractLogicsElement > & logicsElement)
static

◆ getLogicsComponentLabel() [1/2]

std::shared_ptr< CLogicsComponentLabel > CLogicsDrawingAreaModel::getLogicsComponentLabel ( AbstractCanvasItem::TId id) const

CLogicsDrawingAreaModel::getLogicsComponentLabel

Returns a pointer to the logics component if the id refers to a component that a CLogicsComponentLabel; nullptr otherwise.

◆ getLogicsComponentLabel() [2/2]

std::shared_ptr< CLogicsComponentLabel > CLogicsDrawingAreaModel::getLogicsComponentLabel ( const std::shared_ptr< AbstractLogicsElement > & logicsElement)
static

◆ getLogicsComponentLibraryBlock() [1/2]

std::shared_ptr< CLogicsComponentLibrary > CLogicsDrawingAreaModel::getLogicsComponentLibraryBlock ( AbstractCanvasItem::TId id) const

◆ getLogicsComponentLibraryBlock() [2/2]

std::shared_ptr< CLogicsComponentLibrary > CLogicsDrawingAreaModel::getLogicsComponentLibraryBlock ( const std::shared_ptr< AbstractLogicsElement > & logicsElement)
static

◆ getLogicsComponentLibraryIOBlock() [1/2]

std::shared_ptr< CLogicsComponentLibraryInOutBlock > CLogicsDrawingAreaModel::getLogicsComponentLibraryIOBlock ( AbstractCanvasItem::TId id) const

◆ getLogicsComponentLibraryIOBlock() [2/2]

std::shared_ptr< CLogicsComponentLibraryInOutBlock > CLogicsDrawingAreaModel::getLogicsComponentLibraryIOBlock ( const std::shared_ptr< AbstractLogicsElement > & logicsElement)
static

◆ getLogicsComponentOthers() [1/2]

std::shared_ptr< CLogicsComponentOthers > CLogicsDrawingAreaModel::getLogicsComponentOthers ( AbstractCanvasItem::TId id) const

◆ getLogicsComponentOthers() [2/2]

std::shared_ptr< CLogicsComponentOthers > CLogicsDrawingAreaModel::getLogicsComponentOthers ( const std::shared_ptr< AbstractLogicsElement > & logicsElement)
static

◆ getLogicsElement() [1/2]

std::shared_ptr< AbstractLogicsElement > CLogicsDrawingAreaModel::getLogicsElement ( AbstractCanvasItem::TId id)

◆ getLogicsElement() [2/2]

std::shared_ptr< const AbstractLogicsElement > CLogicsDrawingAreaModel::getLogicsElement ( AbstractCanvasItem::TId id) const

◆ getLogicsElementsIds()

std::set< AbstractCanvasItem::TId > CLogicsDrawingAreaModel::getLogicsElementsIds ( ) const

◆ getLogicsRectangle() [1/2]

std::shared_ptr< iv::logic::component::LogicRectangle > CLogicsDrawingAreaModel::getLogicsRectangle ( AbstractCanvasItem::TId id) const

◆ getLogicsRectangle() [2/2]

std::shared_ptr< iv::logic::component::LogicRectangle > CLogicsDrawingAreaModel::getLogicsRectangle ( const std::shared_ptr< AbstractLogicsElement > & logicsElement)
static

◆ getLogicsText() [1/2]

std::shared_ptr< iv::logic::component::LogicText > CLogicsDrawingAreaModel::getLogicsText ( AbstractCanvasItem::TId id) const

◆ getLogicsText() [2/2]

std::shared_ptr< iv::logic::component::LogicText > CLogicsDrawingAreaModel::getLogicsText ( const std::shared_ptr< AbstractLogicsElement > & logicsElement)
static

◆ getLogicUnitId()

std::optional< iv::types::unitId > CLogicsDrawingAreaModel::getLogicUnitId ( ) const

◆ getNextDefaultUniqueLabelNameInc()

std::string CLogicsDrawingAreaModel::getNextDefaultUniqueLabelNameInc ( )

◆ getNextIdInc()

AbstractCanvasItem::TId CLogicsDrawingAreaModel::getNextIdInc ( )

◆ getNextOrderOfExecution()

iv::types::logic::logicExecutionOrder CLogicsDrawingAreaModel::getNextOrderOfExecution ( ) const

◆ getNextOrderOfExecutionInc()

iv::types::logic::logicExecutionOrder CLogicsDrawingAreaModel::getNextOrderOfExecutionInc ( )

◆ getOrderOfExecution()

iv::types::logic::logicExecutionOrder CLogicsDrawingAreaModel::getOrderOfExecution ( AbstractCanvasItem::TId id) const

◆ getUniqueLabelDescription()

std::string CLogicsDrawingAreaModel::getUniqueLabelDescription ( const std::string & labelName)

◆ isItemBasicBlock() [1/2]

bool CLogicsDrawingAreaModel::isItemBasicBlock ( AbstractCanvasItem::TId id) const

◆ isItemBasicBlock() [2/2]

bool CLogicsDrawingAreaModel::isItemBasicBlock ( const std::shared_ptr< const AbstractLogicsElement > & component)
static

◆ isItemBasicOrLibraryBlock() [1/2]

bool CLogicsDrawingAreaModel::isItemBasicOrLibraryBlock ( AbstractCanvasItem::TId id) const

◆ isItemBasicOrLibraryBlock() [2/2]

bool CLogicsDrawingAreaModel::isItemBasicOrLibraryBlock ( const std::shared_ptr< const AbstractLogicsElement > & component)
static

◆ isItemBroadCastChannel() [1/2]

bool CLogicsDrawingAreaModel::isItemBroadCastChannel ( AbstractCanvasItem::TId id) const

◆ isItemBroadCastChannel() [2/2]

bool CLogicsDrawingAreaModel::isItemBroadCastChannel ( const std::shared_ptr< const AbstractLogicsElement > & component)
static

◆ isItemChannel() [1/2]

bool CLogicsDrawingAreaModel::isItemChannel ( AbstractCanvasItem::TId id) const

◆ isItemChannel() [2/2]

bool CLogicsDrawingAreaModel::isItemChannel ( const std::shared_ptr< const AbstractLogicsElement > & component)
static

◆ isItemChannelOrLabelOrIOBlock()

bool CLogicsDrawingAreaModel::isItemChannelOrLabelOrIOBlock ( AbstractCanvasItem::TId id) const

◆ isItemConstant() [1/2]

bool CLogicsDrawingAreaModel::isItemConstant ( AbstractCanvasItem::TId id) const

◆ isItemConstant() [2/2]

bool CLogicsDrawingAreaModel::isItemConstant ( const std::shared_ptr< const AbstractLogicsElement > & component)
static

◆ isItemCopyable()

bool CLogicsDrawingAreaModel::isItemCopyable ( AbstractCanvasItem::TId id) const

◆ isItemExecBlock() [1/2]

bool CLogicsDrawingAreaModel::isItemExecBlock ( AbstractCanvasItem::TId id) const

◆ isItemExecBlock() [2/2]

bool CLogicsDrawingAreaModel::isItemExecBlock ( const std::shared_ptr< const AbstractLogicsElement > & component)
static

◆ isItemIOBlock() [1/2]

bool CLogicsDrawingAreaModel::isItemIOBlock ( AbstractCanvasItem::TId id) const

◆ isItemIOBlock() [2/2]

bool CLogicsDrawingAreaModel::isItemIOBlock ( const std::shared_ptr< const AbstractLogicsElement > & component)
static

◆ isItemLabel() [1/2]

bool CLogicsDrawingAreaModel::isItemLabel ( AbstractCanvasItem::TId id) const

◆ isItemLabel() [2/2]

bool CLogicsDrawingAreaModel::isItemLabel ( const std::shared_ptr< const AbstractLogicsElement > & component)
static

◆ isItemLibraryBlock() [1/2]

bool CLogicsDrawingAreaModel::isItemLibraryBlock ( AbstractCanvasItem::TId id) const

◆ isItemLibraryBlock() [2/2]

bool CLogicsDrawingAreaModel::isItemLibraryBlock ( const std::shared_ptr< const AbstractLogicsElement > & component)
static

◆ isItemLibraryIOBlock() [1/2]

bool CLogicsDrawingAreaModel::isItemLibraryIOBlock ( AbstractCanvasItem::TId id) const

◆ isItemLibraryIOBlock() [2/2]

bool CLogicsDrawingAreaModel::isItemLibraryIOBlock ( const std::shared_ptr< const AbstractLogicsElement > & component)
static

◆ isItemLogicComponent() [1/2]

bool CLogicsDrawingAreaModel::isItemLogicComponent ( AbstractCanvasItem::TId id) const

◆ isItemLogicComponent() [2/2]

bool CLogicsDrawingAreaModel::isItemLogicComponent ( const std::shared_ptr< const AbstractLogicsElement > & component)
static

◆ isItemLogicRectangle() [1/2]

bool CLogicsDrawingAreaModel::isItemLogicRectangle ( AbstractCanvasItem::TId id) const

◆ isItemLogicRectangle() [2/2]

bool CLogicsDrawingAreaModel::isItemLogicRectangle ( const std::shared_ptr< const AbstractLogicsElement > & component)
static

◆ isItemLogicText() [1/2]

bool CLogicsDrawingAreaModel::isItemLogicText ( AbstractCanvasItem::TId id) const

◆ isItemLogicText() [2/2]

bool CLogicsDrawingAreaModel::isItemLogicText ( const std::shared_ptr< const AbstractLogicsElement > & component)
static

◆ isItemMovable()

bool CLogicsDrawingAreaModel::isItemMovable ( AbstractCanvasItem::TId id) const

◆ isLogicCompletelyConnected()

bool CLogicsDrawingAreaModel::isLogicCompletelyConnected ( ) const

◆ isLogicEmpty()

bool CLogicsDrawingAreaModel::isLogicEmpty ( ) const

◆ ledFileToCLogicsDrawingAreaModel()

std::shared_ptr< CLogicsDrawingAreaModel > CLogicsDrawingAreaModel::ledFileToCLogicsDrawingAreaModel ( const std::string & file,
std::optional< iv::types::unitId > logicUnitId = std::nullopt,
std::optional< iv::types::logic::customBlockId > customBlockId = std::nullopt )
static

◆ operator=() [1/2]

CLogicsDrawingAreaModel & CLogicsDrawingAreaModel::operator= ( CLogicsDrawingAreaModel && other)
delete

◆ operator=() [2/2]

CLogicsDrawingAreaModel & CLogicsDrawingAreaModel::operator= ( const CLogicsDrawingAreaModel & other)
delete

◆ prvClearConnectionPointParameter()

void CLogicsDrawingAreaModel::prvClearConnectionPointParameter ( std::shared_ptr< CLogicsConnectionPoint > connectionPoint) const
private

◆ prvFindParameterValue()

uint32_t CLogicsDrawingAreaModel::prvFindParameterValue ( const std::shared_ptr< CLogicsComponentExec > & lcExec,
iv::logic::eDBBlockParamType blockParamType,
iv::types::logic::paramNumber parameterNumber,
const std::string & paramDescription,
std::string & paramValueText,
uint32_t & channelUnitId,
uint16_t & channelId,
std::string & channelType,
std::string & description,
std::string & error ) const
private

Devuelve el valor del parámetro del tipo blockParamType y el índice index

Parameters
lcExecComponente con los parámetros
blockParamTypeTipos de parámetros
parameterNumberNúmero de parámetro
paramDescriptionDescripción del parámetro
paramValueTextTexto del parámetro
channelUnitIdIdentificador de unidad del canal
channelIdIdentificador del canal
channelTypeTipo de canal
errorSi hay algún tipo de error detectado este parámetro contiene el mensaje
Returns

◆ prvFindParameterValueInLib()

uint32_t CLogicsDrawingAreaModel::prvFindParameterValueInLib ( const SLibraryLogicBlockParam & blockParam,
const SLibraryLogicBlock & blockRef,
std::string & paramValueText,
uint32_t & channelUnitId,
uint16_t & channelId,
std::string & channelType,
std::string & description,
std::string & error ) const
private

◆ prvFindSParameterValue()

std::string CLogicsDrawingAreaModel::prvFindSParameterValue ( const std::shared_ptr< CLogicsComponentExec > & lcExec,
iv::logic::eDBBlockParamType blockParamType,
iv::types::logic::paramNumber paramNum,
bool isLibrary,
const std::string & paramValue,
std::string & error ) const
private

◆ prvFormatEditParameterLogicLibraryInfo()

std::string CLogicsDrawingAreaModel::prvFormatEditParameterLogicLibraryInfo ( const iv::logic::formulaLogic::SBlockParam & pPar,
uint32_t globalIdOrValueParameter,
uint32_t blockOrder ) const
private

◆ prvFormatExternalParameterBlocksInLibraryLogicLibraryInfo()

std::string CLogicsDrawingAreaModel::prvFormatExternalParameterBlocksInLibraryLogicLibraryInfo ( const iv::logic::formulaLogic::SBlockParam & pPar,
const SLibraryLogicBlockParam & libraryLogicBlockParam,
uint32_t globalIdOrValueParameter ) const
private

◆ prvFormatExternalParameterBlocksInLibraryLogicsDrawing()

std::string CLogicsDrawingAreaModel::prvFormatExternalParameterBlocksInLibraryLogicsDrawing ( const iv::logic::formulaLogic::SBlockParam & pPar,
const std::shared_ptr< AbstractLogicsElement > & logicComponent,
uint32_t globalIdOrValueParameter ) const
private

◆ prvFormatParameterLogicDrawing()

std::string CLogicsDrawingAreaModel::prvFormatParameterLogicDrawing ( const iv::logic::formulaLogic::SBlockParam & pPar,
const std::shared_ptr< AbstractLogicsElement > & logicComponent,
uint32_t globalIdOrValueParameter ) const
private

Format parameters for TXT file from LogicDrawing blocks

◆ prvFormatParameterLogicLibraryInfo()

std::string CLogicsDrawingAreaModel::prvFormatParameterLogicLibraryInfo ( const iv::logic::formulaLogic::SBlockParam & pPar,
const SLibraryLogicBlockParam & libraryLogicBlockParam,
uint32_t globalIdOrValueParameter ) const
private

Format parameters for TXT file from LogicLibraryInfo blocks

◆ prvGenerateCLogicFileObjectLomData()

CFormulaLogic * CLogicsDrawingAreaModel::prvGenerateCLogicFileObjectLomData ( uint32_t unitId,
const CLogicsAllowed & logicsAllowed ) const
private

◆ prvGenerateCLogicFileObjectLomDataLibrary()

bool CLogicsDrawingAreaModel::prvGenerateCLogicFileObjectLomDataLibrary ( uint32_t unitId,
const LogicLibraryInfo & currentLibraryInfo,
const CLogicsAllowed & logicsAllowed,
iv::logic::formulaLogic::SBlock & libraryBlocksRef,
std::string & error,
uint16_t & blockWrittenIndex ) const
private

◆ prvGenerateCLogicFileObjectLomDataLibraryBlockParams()

bool CLogicsDrawingAreaModel::prvGenerateCLogicFileObjectLomDataLibraryBlockParams ( uint32_t unitId,
const SLibraryLogicBlock & currentBlock,
const CLogicsAllowed & logicsAllowed,
iv::logic::formulaLogic::SBlock & blockRef,
std::string & error,
uint16_t & blockWrittenIndex ) const
private

◆ prvGenerateCLogicFileObjectLomDataParams()

bool CLogicsDrawingAreaModel::prvGenerateCLogicFileObjectLomDataParams ( uint32_t unitId,
const std::shared_ptr< CLogicsComponentExec > & currentLogicComponentExec,
const CLogicsAllowed & logicsAllowed,
iv::logic::formulaLogic::SBlock & blockRef,
std::string & error,
uint16_t & blockWrittenIndex ) const
private

◆ prvGenerateCParamOnLineListObject()

std::shared_ptr< iv::logic::UnitParamsOnline > CLogicsDrawingAreaModel::prvGenerateCParamOnLineListObject ( uint32_t unitId,
CFormulaLogic * formulaLogic ) const
private

◆ prvGenerateCParamOnlineListObjectBlockLibrary()

bool CLogicsDrawingAreaModel::prvGenerateCParamOnlineListObjectBlockLibrary ( const iv::logic::formulaLogic::SBlock & logicBlock,
uint32_t unitId,
const std::string & libraryBlockTagName,
uint32_t & onlineParamOrderInLogicOut,
const std::shared_ptr< iv::logic::LibraryParamsOnline > & libraryParamsOnlineOut ) const
private

◆ prvGenerateCParamOnlineListObjectBlockParams()

bool CLogicsDrawingAreaModel::prvGenerateCParamOnlineListObjectBlockParams ( const iv::logic::formulaLogic::SBlock & logicBlock,
uint32_t unitId,
const std::string & libraryBlockTagName,
uint32_t & onlineParamOrderInLogicOut,
const std::shared_ptr< iv::logic::LibraryParamsOnline > & libraryParamsOnlineOut )
staticprivate

◆ prvGetBlockDescription()

std::string CLogicsDrawingAreaModel::prvGetBlockDescription ( const std::shared_ptr< AbstractLogicsElement > & block,
const std::shared_ptr< CLogicsConnectionPoint > & connectionPoint )
private

◆ prvGetCLogicsComponentConstant()

CLogicsComponentConstant * CLogicsDrawingAreaModel::prvGetCLogicsComponentConstant ( AbstractCanvasItem::TId id) const
private

CLogicsDrawingAreaModel::prvGetCLogicsComponentConstant

Returns a pointer to the logics component if the id refers to a component; nullptr otherwise. //csb: "that has order of execution" is not true prvAbstractCanvasItemTIdToCLogicsComponentExec changed to prvGetCLogicsComponentConstant

◆ prvGetComponentIdOfOppositeConnectionPoint()

AbstractCanvasItem::TId CLogicsDrawingAreaModel::prvGetComponentIdOfOppositeConnectionPoint ( const std::shared_ptr< CLogicsComponentExec > & pExec,
iv::logic::eDBBlockParamType type,
iv::types::logic::paramNumber paramNum )
staticprivate

Devuelve el TId del componente que está enlazado al ConnectionPoint opuesto (salida)

Parameters
pExeccomponente
typeDebe ser siempre de entrada, una salida puede tener varias entradas pero una entrada una sola salida.
paramNumNúmero de parámetro
Returns

◆ prvGetLibraryLogicBlockParamConnectedTypeForParameter()

ELibraryLogicBlockParamConnectedType CLogicsDrawingAreaModel::prvGetLibraryLogicBlockParamConnectedTypeForParameter ( const std::shared_ptr< CLogicsComponentLibrary > & componentLibraryRef,
iv::logic::ParamId paramId ) const
private

◆ prvGetOppositeConnectionPointFromPoint()

std::shared_ptr< CLogicsConnectionPoint > CLogicsDrawingAreaModel::prvGetOppositeConnectionPointFromPoint ( AbstractCanvasItem::TId tId) const
private

Obtiene un puntero de referencia al CLogicsConnectionPoint opuesto al tId del CLogicsConnectionPoint

Parameters
tIdde un CLogicsConnectionPoint
Returns

◆ prvPostReadProcessing()

void CLogicsDrawingAreaModel::prvPostReadProcessing ( )
private

◆ prvPostReadProcessingConnection()

void CLogicsDrawingAreaModel::prvPostReadProcessingConnection ( const std::shared_ptr< AbstractLogicsElement > & lE)
private

◆ prvPostReadProcessingConnectionPoint()

void CLogicsDrawingAreaModel::prvPostReadProcessingConnectionPoint ( const std::shared_ptr< AbstractLogicsElement > & lE) const
private

◆ prvReadLibraryInputs()

std::map< iv::types::logic::libraryIOId, iv::logic::LogicLibraryIOInfo > CLogicsDrawingAreaModel::prvReadLibraryInputs ( const iv::file::xml::node & nodeDataLogic)
staticprivate

Functionalities

◆ prvReadLibraryOutputs()

std::map< iv::types::logic::libraryIOId, iv::logic::LogicLibraryIOInfo > CLogicsDrawingAreaModel::prvReadLibraryOutputs ( const iv::file::xml::node & nodeDataLogic)
staticprivate

◆ prvSaveLibraryInputs()

void CLogicsDrawingAreaModel::prvSaveLibraryInputs ( iv::file::xml::node & nodeDataLogic) const
private

◆ prvSaveLibraryOutputs()

void CLogicsDrawingAreaModel::prvSaveLibraryOutputs ( iv::file::xml::node & nodeDataLogic) const
private

◆ prvSetComponentExecBlockParams()

void CLogicsDrawingAreaModel::prvSetComponentExecBlockParams ( AbstractCanvasItem::TId itemId)
private

◆ prvSetConnectionComponentMI()

void CLogicsDrawingAreaModel::prvSetConnectionComponentMI ( const std::shared_ptr< CLogicsConnectionPoint > & connectionPoint,
uint32_t currentMI ) const
private

◆ prvSetConnectionValues() [1/2]

void CLogicsDrawingAreaModel::prvSetConnectionValues ( const std::shared_ptr< CLogicsConnection > & connection)
private

◆ prvSetConnectionValues() [2/2]

void CLogicsDrawingAreaModel::prvSetConnectionValues ( const std::shared_ptr< CLogicsConnectionPoint > & basicBlockConnectionPoint,
const std::shared_ptr< CLogicsConnectionPoint > & connectedConnectionPoint )
private

◆ prvSetIdOutputPins()

bool CLogicsDrawingAreaModel::prvSetIdOutputPins ( ) const
private

◆ prvUpdateComponent()

void CLogicsDrawingAreaModel::prvUpdateComponent ( const std::shared_ptr< CLogicsComponent > & lComponent)
private

◆ prvUpdateLabels()

void CLogicsDrawingAreaModel::prvUpdateLabels ( const std::string & oldLabelName,
const std::string & newLabelName,
const std::string & newLabelDescription )
private

◆ prvUpdateLibraryBlockExternalParams()

void CLogicsDrawingAreaModel::prvUpdateLibraryBlockExternalParams ( const std::shared_ptr< CLogicsComponentLibrary > & componentLibraryRef) const
private

◆ prvUpdateOrdersOfExecution()

void CLogicsDrawingAreaModel::prvUpdateOrdersOfExecution ( EActionOnLogicsComponent lastAction,
iv::types::logic::logicExecutionOrder oldOrder,
iv::types::logic::logicExecutionOrder newOrder = AbstractCanvasItem::kInvalidCanvasItemId )
private

◆ read()

void CLogicsDrawingAreaModel::read ( const iv::file::xml::File & fileXml)

◆ readInfoLogic()

void CLogicsDrawingAreaModel::readInfoLogic ( const iv::file::xml::File & fileXml)

◆ removeCustomBlockInInfo()

bool CLogicsDrawingAreaModel::removeCustomBlockInInfo ( const iv::types::logic::libraryIOId & id) const

◆ removeCustomBlockOutInfo()

bool CLogicsDrawingAreaModel::removeCustomBlockOutInfo ( const iv::types::logic::libraryIOId & id) const

◆ save()

void CLogicsDrawingAreaModel::save ( iv::file::xml::File & fileXml) const

◆ saveLogicLedFiles()

bool CLogicsDrawingAreaModel::saveLogicLedFiles ( const std::string & projectFolder,
uint16_t logicUnitId ) const

◆ setCustomBlockId()

void CLogicsDrawingAreaModel::setCustomBlockId ( std::optional< iv::types::logic::customBlockId > customBlockId)

◆ setFlagProjectJustLoaded()

void CLogicsDrawingAreaModel::setFlagProjectJustLoaded ( bool flag)

◆ setInfoLogic()

void CLogicsDrawingAreaModel::setInfoLogic ( const iv::logic::InfoLogicTxt & infoLogicTxt)

◆ setInfoLogicTxtDataFileAndDate()

void CLogicsDrawingAreaModel::setInfoLogicTxtDataFileAndDate ( const std::string & fileName)

◆ updateBasicBlockValues()

void CLogicsDrawingAreaModel::updateBasicBlockValues ( AbstractCanvasItem::TId itemId)

◆ updateCustomBlockInInfo()

bool CLogicsDrawingAreaModel::updateCustomBlockInInfo ( const iv::types::logic::libraryIOId & id,
const iv::logic::LogicLibraryIOInfo & info ) const

◆ updateCustomBlockOutInfo()

bool CLogicsDrawingAreaModel::updateCustomBlockOutInfo ( const iv::types::logic::libraryIOId & id,
const iv::logic::LogicLibraryIOInfo & info ) const

◆ updateLogicsChannels()

void CLogicsDrawingAreaModel::updateLogicsChannels ( )

◆ updateLogicsElements()

void CLogicsDrawingAreaModel::updateLogicsElements ( )

◆ updateUniqueLabel()

void CLogicsDrawingAreaModel::updateUniqueLabel ( const std::string & oldLabelName,
const std::string & newLabelName,
const std::string & newDescription )

◆ updateUnsetLabels()

void CLogicsDrawingAreaModel::updateUnsetLabels ( const std::string & newLabelName)

Member Data Documentation

◆ m_customBlockId

std::optional<iv::types::logic::customBlockId> CLogicsDrawingAreaModel::m_customBlockId
private

◆ m_flagProjectJustLoaded

bool CLogicsDrawingAreaModel::m_flagProjectJustLoaded
private

◆ m_infoLogic

iv::logic::InfoLogicTxt CLogicsDrawingAreaModel::m_infoLogic
private

◆ m_libraryIOInfos

std::shared_ptr<iv::logic::CustomBlockIOInfos> CLogicsDrawingAreaModel::m_libraryIOInfos
private

◆ m_logicUnitId

std::optional<iv::types::unitId> CLogicsDrawingAreaModel::m_logicUnitId
private

◆ m_mapIdElement

TMapIdElement CLogicsDrawingAreaModel::m_mapIdElement
private

◆ m_mapUniqueLabelId

TMapLabelId CLogicsDrawingAreaModel::m_mapUniqueLabelId
private

◆ m_nextIdToUse

AbstractCanvasItem::TId CLogicsDrawingAreaModel::m_nextIdToUse
private

◆ m_nextOrderOfExecution

iv::types::logic::logicExecutionOrder CLogicsDrawingAreaModel::m_nextOrderOfExecution
private

◆ m_nextUniqueLabelDefaultIdNumber

CLogicsComponentLabel::TUniqueLabelDefaultIdNumber CLogicsDrawingAreaModel::m_nextUniqueLabelDefaultIdNumber
private

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