|
| 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 |
|
CLogicsDrawingAreaModel & | operator= (const CLogicsDrawingAreaModel &other)=delete |
|
CLogicsDrawingAreaModel & | operator= (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< CLogicFile > | generateCLogicFileObject (uint32_t logicId) const |
|
std::shared_ptr< iv::logic::UnitParamsOnline > | generateUnitParamsOnline (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::InfoLogicTxt * | getInfoLogicPtr () |
|
void | setInfoLogic (const iv::logic::InfoLogicTxt &infoLogicTxt) |
|
std::shared_ptr< const AbstractLogicsElement > | getLogicsElement (AbstractCanvasItem::TId id) const |
|
std::shared_ptr< AbstractLogicsElement > | getLogicsElement (AbstractCanvasItem::TId id) |
|
std::set< AbstractCanvasItem::TId > | getLogicsElementsIds () 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::LogicLibraryIOInfo > | getCustomBlockInInfo (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::LogicLibraryIOInfo > | getCustomBlockOutInfo (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::TId > | findChannelsLabelsAndIOBlocks () 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< AbstractLogicsElement > | getAbstractLogicElement (AbstractCanvasItem::TId id) const |
|
std::shared_ptr< iv::logic::component::LogicText > | getLogicsText (AbstractCanvasItem::TId id) const |
|
std::shared_ptr< iv::logic::component::LogicRectangle > | getLogicsRectangle (AbstractCanvasItem::TId id) const |
|
std::shared_ptr< CLogicsComponent > | getLogicsComponent (AbstractCanvasItem::TId id) const |
|
std::shared_ptr< CLogicsComponentOthers > | getLogicsComponentOthers (AbstractCanvasItem::TId id) const |
|
std::shared_ptr< CLogicsComponentConstant > | getLogicsComponentConstant (AbstractCanvasItem::TId id) const |
|
std::shared_ptr< CLogicsComponentChannel > | getLogicsComponentChannel (AbstractCanvasItem::TId id) const |
|
std::shared_ptr< LogicComponentBroadCastChannel > | getLogicsComponentBroadCastChannel (AbstractCanvasItem::TId id) const |
|
std::shared_ptr< CLogicsComponentLabel > | getLogicsComponentLabel (AbstractCanvasItem::TId id) const |
|
std::shared_ptr< CLogicsConnection > | getLogicsComponentConnection (AbstractCanvasItem::TId id) const |
|
std::shared_ptr< CLogicsConnectionPoint > | getLogicsComponentConnectionPoint (AbstractCanvasItem::TId id) const |
|
std::shared_ptr< CLogicsComponentLibraryInOutBlock > | getLogicsComponentLibraryIOBlock (AbstractCanvasItem::TId id) const |
|
std::shared_ptr< CLogicsComponentExec > | getLogicsComponentExec (AbstractCanvasItem::TId id) const |
|
std::shared_ptr< CLogicsComponentLibrary > | getLogicsComponentLibraryBlock (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 TMapIdElement * | getElementsMap () 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::libraryTagName > | getAllLibraryBlockTagnames () const |
|
std::set< std::string > | getLabelsNames () const |
|
std::optional< iv::types::unitId > | getLogicUnitId () const |
|
std::optional< iv::types::logic::customBlockId > | getCustomBlockId () const |
|
std::shared_ptr< iv::logic::CustomBlockIOInfos > | getCustomBlockIOInfos () const |
|
std::vector< std::weak_ptr< iv::channels::AbstractChannel > > | getChannels () const |
|
|
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 |
|
CFormulaLogic * | prvGenerateCLogicFileObjectLomData (uint32_t unitId, const CLogicsAllowed &logicsAllowed) const |
|
bool | prvGenerateCLogicFileObjectLomDataParams (uint32_t unitId, const std::shared_ptr< CLogicsComponentExec > ¤tLogicComponentExec, const CLogicsAllowed &logicsAllowed, iv::logic::formulaLogic::SBlock &blockRef, std::string &error, uint16_t &blockWrittenIndex) const |
|
bool | prvGenerateCLogicFileObjectLomDataLibrary (uint32_t unitId, const LogicLibraryInfo ¤tLibraryInfo, const CLogicsAllowed &logicsAllowed, iv::logic::formulaLogic::SBlock &libraryBlocksRef, std::string &error, uint16_t &blockWrittenIndex) const |
|
bool | prvGenerateCLogicFileObjectLomDataLibraryBlockParams (uint32_t unitId, const SLibraryLogicBlock ¤tBlock, const CLogicsAllowed &logicsAllowed, iv::logic::formulaLogic::SBlock &blockRef, std::string &error, uint16_t &blockWrittenIndex) const |
|
std::shared_ptr< iv::logic::UnitParamsOnline > | prvGenerateCParamOnLineListObject (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 |
|
CLogicsComponentConstant * | prvGetCLogicsComponentConstant (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 ¶mDescription, std::string ¶mValueText, 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 ¶mValue, std::string &error) const |
|
uint32_t | prvFindParameterValueInLib (const SLibraryLogicBlockParam &blockParam, const SLibraryLogicBlock &blockRef, std::string ¶mValueText, uint32_t &channelUnitId, uint16_t &channelId, std::string &channelType, std::string &description, std::string &error) const |
|
std::shared_ptr< CLogicsConnectionPoint > | prvGetOppositeConnectionPointFromPoint (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) |
|