X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/56f7c4239666506c59af42885f0bf0141d21a614..6e2b3026c6a496e81642c373796bd39dad33d2a6:/ConnectedInterface.cpp?ds=sidebyside diff --git a/ConnectedInterface.cpp b/ConnectedInterface.cpp index 017401a..3724417 100644 --- a/ConnectedInterface.cpp +++ b/ConnectedInterface.cpp @@ -7,15 +7,17 @@ ConnectedInterface::ConnectedInterface(AbstractBlock* _owner) : AbstractInterface(_owner) { connectedFrom = NULL; outputPattern = NULL; + inputModifier = NULL; } ConnectedInterface::ConnectedInterface(AbstractBlock* _owner, const QString& _name, int _direction, int _purpose, const QString& _type, const QString& _width) : AbstractInterface(_owner, _name, _direction, _purpose, _type, _width) { - connectedFrom = NULL; + connectedFrom = NULL; outputPattern = NULL; + inputModifier = NULL; } -ConnectedInterface::~ConnectedInterface() { +ConnectedInterface::~ConnectedInterface() { if (outputPattern != NULL) delete outputPattern; } @@ -39,6 +41,7 @@ void ConnectedInterface::setOutputPattern(QList* pattern) { if (outputPattern != NULL) delete outputPattern; outputPattern = pattern; } + void ConnectedInterface::connectTo(ConnectedInterface *iface) { connectedTo.append(iface); @@ -97,3 +100,8 @@ ConnectedInterface *ConnectedInterface::getConnectionFromParentGroup() { } return NULL; } + +void ConnectedInterface::clearInputModifier() { + if (inputModifier != NULL) delete inputModifier; + inputModifier = NULL; +}