]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkBlackBoxInputConnector.cxx
*** empty log message ***
[bbtk.git] / kernel / src / bbtkBlackBoxInputConnector.cxx
index 1bbde7331d0a0d202ed8821a029a4b9e2cb8d5df..5c2bd13a28f19a6c24f1767a8a936bb7c09e8cc5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkBlackBoxInputConnector.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/04/18 12:59:15 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2008/04/24 10:11:28 $
+  Version:   $Revision: 1.5 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -27,7 +27,7 @@
 namespace bbtk
 {
   BlackBoxInputConnector::BlackBoxInputConnector(BlackBox::Pointer b)  
-    : mBox(b), mConnection(), mStatus(MODIFIED)
+    : mBox(b), mConnection(0), mStatus(MODIFIED)
   {
     bbtkDebugMessage("Kernel",9,"BlackBoxInputConnector::BlackBoxInputConnector()"<<std::endl);
   }
@@ -39,27 +39,27 @@ namespace bbtk
     bbtkDebugDecTab("Kernel",9);
   }
   
-  void BlackBoxInputConnector::SetConnection(Connection::Pointer c) 
+  void BlackBoxInputConnector::SetConnection(Connection* c) 
   { 
     bbtkDebugMessage("Kernel",9,"BlackBoxInputConnector::SetConnection("<<c<<")"<<std::endl);
     mConnection = c; 
   }
   
-  void BlackBoxInputConnector::UnsetConnection(Connection::Pointer c) 
+  void BlackBoxInputConnector::UnsetConnection(Connection* c) 
   { 
     bbtkDebugMessage("Kernel",9,"BlackBoxInputConnector::UnsetConnection("
                     <<c<<")"<<std::endl);
-    mConnection.reset();
+    mConnection = 0; //.reset();
   }
   
   IOStatus BlackBoxInputConnector::BackwardUpdate()
   {
-    bbtkDebugMessageInc("Process",4,"BlackBoxInputConnector::BackwardUpdate()"
-                       <<std::endl);
+    bbtkDebugMessage("process",9,"==> BlackBoxInputConnector::BackwardUpdate()"
+                    <<std::endl);
 
-    if (mConnection.lock()) 
+    if (mConnection) //.lock()) 
       {
-       IOStatus s = mConnection.lock()->BackwardUpdate();
+       IOStatus s = mConnection->BackwardUpdate();
        mStatus = s;
       }
     else 
@@ -67,8 +67,6 @@ namespace bbtk
        mStatus = UPTODATE;
       }
 
-    bbtkDecTab("Process",4);
-
     return mStatus;
 
   }