]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkComplexBlackBox.cxx
* Major changes on IOStatus update / propagation
[bbtk.git] / kernel / src / bbtkComplexBlackBox.cxx
index a8653ccedbe769f10698b804d512c39291f28b20..de9bb69e41cb1e154bb38c60899a1677c2a895fd 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkComplexBlackBox.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/10/17 08:18:12 $
-  Version:   $Revision: 1.21 $
+  Date:      $Date: 2008/12/08 12:54:09 $
+  Version:   $Revision: 1.22 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -279,6 +279,7 @@ namespace bbtk
   }
   //==================================================================
 
+  /*
   //==================================================================
   void ComplexBlackBox::bbSetModifiedStatus(BlackBoxInputConnector* c)
   {
@@ -288,13 +289,9 @@ namespace bbtk
 
     c->GetBlackBox()->bbSetModifiedStatus(c);
 
-    /*
-    bbtkDebugMessage("modified",1,
-                    "<== ComplexBlackBox::bbSetModifiedStatus("
-                    <<c<<") ["<<bbGetFullName()<<"]"<<std::endl);
-    */
   }
   //==================================================================
+*/
 
   //==================================================================
   void ComplexBlackBox::bbAddToExecutionList( const std::string& name )
@@ -312,7 +309,7 @@ namespace bbtk
   //==================================================================
 
   //==================================================================
-  IOStatus ComplexBlackBox::bbBackwardUpdate(Connection::Pointer caller)
+  void ComplexBlackBox::bbBackwardUpdate(Connection::Pointer caller)
   {
     bbtkDebugMessageInc("process",3,
                        "==> ComplexBlackBox::bbBackwardUpdate("
@@ -334,7 +331,7 @@ namespace bbtk
       
 
 
-    IOStatus s = UPTODATE;
+    //    IOStatus s = UPTODATE;
     const BlackBoxDescriptor::OutputDescriptorMapType& omap 
       = bbGetDescriptor()->GetOutputDescriptorMap(); 
     BlackBoxDescriptor::OutputDescriptorMapType::const_iterator i 
@@ -360,21 +357,22 @@ namespace bbtk
        //Connection newcaller(*caller);
        //newcaller.SetBlackBoxFromOutput(d->GetOutput());
        //IOStatus s1 = b->bbBackwardUpdate(&newcaller);
-       IOStatus s1 = b->bbBackwardUpdate(caller);
+       //IOStatus s1 =
+       b->bbBackwardUpdate(caller);
        //newcaller.Clear();
        // restore old output
        //      caller->SetBlackBoxFromOutput(oldout);
 
        // ??? STATUS OF CBBs ???
        // ??? Here it is only the final status of the boxes connected to the output 
-       if (s1==MODIFIED) s=MODIFIED;
+       //      if (s1==MODIFIED) s=MODIFIED;
       }
     else 
       {
        bbtkError("Connection '"<<caller->GetFullName()<<"' does not point to a valid output of the complex box !");
       }
 
-    return s;
+    return; // s;
     
   }
   //==================================================================