]> AND Private Git Repository - blast.git/blobdiff - GroupBlock.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
added source items
[blast.git] / GroupBlock.cpp
index 74ec197086d458f9e7e0ddb3f2033c6aaba1bb8e..e5d3b21f8a2880216365d69d575f2b5824f859e2 100644 (file)
@@ -40,6 +40,7 @@ void GroupBlock::setParent(AbstractBlock *_parent) {
     topGroup = false;
   }
 }
+
 void GroupBlock::removeAllBlocks() {
   foreach(AbstractBlock* block, blocks) {
     if (block->isGroupBlock()) {
@@ -58,6 +59,15 @@ void GroupBlock::removeBlock(AbstractBlock* block) {
   delete block;
 }
 
+AbstractBlock *GroupBlock::getFunctionalBlockByName(QString name) {
+  foreach(AbstractBlock* block, blocks) {
+    if (block->isFunctionalBlock()) {
+      if (block->getName() == name) return block;
+    }
+  }
+  return NULL;
+}
+
 void GroupBlock::parametersValidation(QList<AbstractBlock *> *checkedBlocks, QList<AbstractBlock *> *blocksToConfigure) {
 
   /*