]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkConnection.cxx
Bug fix in status propagation
[bbtk.git] / kernel / src / bbtkConnection.cxx
index 38051fbff9e41ac2b83df54e4bf2e5e53062ca38..4e39eb45668d740ace70c5f68f1f7149e7333ece 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkConnection.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/12/08 14:02:15 $
-  Version:   $Revision: 1.17 $
+  Date:      $Date: 2008/12/09 11:48:31 $
+  Version:   $Revision: 1.18 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -341,7 +341,7 @@ Connection::Connection(BlackBox::Pointer from, const std::string& output,
   /// Backward Update
   void Connection::BackwardUpdate()
   {
-    bbtkDebugMessage("process",5,
+    bbtkDebugMessage("process",3,
                     "===> Connection::BackwardUpdate() ["
                     <<GetFullName()<<"]"<<std::endl);
 
@@ -352,10 +352,20 @@ Connection::Connection(BlackBox::Pointer from, const std::string& output,
     // Transfer status
     IOStatus s = MODIFIED;
     if ( mFrom->bbGetOutputConnector(mOutput).GetStatus() == OUTOFDATE) 
-      s = OUTOFDATE,
+      {
+       s = OUTOFDATE;
+      }
     mTo->bbGetInputConnector(mInput).SetStatus(s);
-
-    bbtkDebugMessage("process",5,
+    
+    bbtkDebugMessage("process",3,
+                    " --> '"<<mTo->bbGetName()<<"."<<mInput
+                    <<" ["<<&mTo->bbGetInputConnector(mInput)<<"] "
+                    <<"' new status '"
+                    <<GetIOStatusString(s)
+                    <<"'"
+                    << std::endl);
+
+    bbtkDebugMessage("process",3,
                     "<=== Connection::BackwardUpdate() ["
                     <<GetFullName()<<"]"<<std::endl);
     return; // s;
@@ -517,7 +527,8 @@ Connection::Connection(BlackBox::Pointer from, const std::string& output,
                                  IOStatus status)
   {
     bbtkDebugMessage("change",2,
-                    "==> Connection::OnOutputChange("<<status<<") ["
+                    "==> Connection::OnOutputChange("
+                    <<GetIOStatusString(status)<<") ["
                     <<GetFullName()<<"]"<<std::endl);
     if (mAdaptor) 
       {