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

Private GIT Repository
start modifying read/write blocks and project to take into account control ifaces
[blast.git] / GroupInterface.cpp
index 1c10bffba03f2b4eeeddd8c8f3ff35f233dce163..7fc8745e032e9ea82adac25b985bd0e8f9a29bb6 100644 (file)
@@ -2,7 +2,7 @@
 #include "FunctionalInterface.h"
 #include "GroupBlock.h"
 
 #include "FunctionalInterface.h"
 #include "GroupBlock.h"
 
-GroupInterface::GroupInterface(AbstractBlock* _owner, const QString& _name, int _direction) throw(Exception) : ConnectedInterface(_owner,_name,"expression","",_direction,AbstractInterface::Data) {
+GroupInterface::GroupInterface(AbstractBlock* _owner, const QString& _name, int _direction, int _purpose) throw(Exception) : ConnectedInterface(_owner,_name,"expression","",_direction,_purpose) {
   if (! _owner->isGroupBlock()) throw(Exception(BLOCK_INVALID_TYPE));
 
   connectedFrom = NULL;
   if (! _owner->isGroupBlock()) throw(Exception(BLOCK_INVALID_TYPE));
 
   connectedFrom = NULL;
@@ -13,10 +13,8 @@ bool GroupInterface::isGroupInterface() {
 }
 
 AbstractInterface *GroupInterface::clone() {
 }
 
 AbstractInterface *GroupInterface::clone() {
-    GroupInterface *inter = new GroupInterface(owner,name,direction);
-    inter->setWidth(width);
-    inter->setDirection(direction);
-    inter->setPurpose(purpose);    
+    GroupInterface *inter = new GroupInterface(owner,name,direction, purpose);
+    inter->setWidth(width);    
     inter->connectFrom(NULL);
 
     return inter;
     inter->connectFrom(NULL);
 
     return inter;