]> Creatis software - bbtk.git/commitdiff
*** empty log message ***
authorguigues <guigues>
Mon, 21 Apr 2008 11:38:19 +0000 (11:38 +0000)
committerguigues <guigues>
Mon, 21 Apr 2008 11:38:19 +0000 (11:38 +0000)
kernel/src/bbtkComplexBlackBox.cxx
kernel/src/bbtkFactory.cxx

index c494d6555c6a4cd0bfdf1df7e47fda954ab3603c..56fdb05c09bb5055c5d4aa9dabcec1ef4ee54c20 100644 (file)
@@ -3,8 +3,8 @@
 Program:   bbtk
 Module:    $RCSfile: bbtkComplexBlackBox.cxx,v $
 Language:  C++
-Date:      $Date: 2008/04/18 12:59:15 $
-Version:   $Revision: 1.10 $
+Date:      $Date: 2008/04/21 11:41:56 $
+Version:   $Revision: 1.11 $
                                                                                 
 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
 l'Image). All rights reserved. See Doc/License.txt or
@@ -317,8 +317,8 @@ namespace bbtk
                        "ComplexBlackBox::bbBackwardUpdate("
                        <<(caller?caller->GetFullName():"0")<<") ["
                        <<bbGetFullName()<<"]"<<std::endl);
-    bbtkInternalError("ComplexBlackBox::bbBackwardUpdate should never be called !");
-    /*
+    //    bbtkInternalError("ComplexBlackBox::bbBackwardUpdate should never be called !");
+    
     if (caller==0)
       {
        bbtkInternalError("ComplexBlackBox::bbBackwardUpdate called with caller=0");
@@ -342,7 +342,7 @@ namespace bbtk
        ComplexBlackBoxOutputDescriptor* d = 
          (ComplexBlackBoxOutputDescriptor*)i->second;
        // Get the internal box 
-       BlackBox* b = bbUnsafeGetBlackBox ( d->GetTarget() );
+       BlackBox::Pointer b = bbUnsafeGetBlackBox ( d->GetTarget() );
        // Calls BackwardUpdate on it
        bbtkDebugMessageInc("Process",2,"Internal box connected to output : "<<d->GetTarget()<<std::endl);
        // Because internal box can also be a complex box we have to 
@@ -376,8 +376,8 @@ namespace bbtk
     bbSetExecuting(false);
 
     return s;
-    */
-    return UPTODATE;
+    
+    //    return UPTODATE;
   }
   //==================================================================
 
index c024617d59d01416250563110db678ffe8f2855b..22c6ad362cf4556c3b0715a2c68041800d40dadc 100644 (file)
@@ -4,8 +4,8 @@ Program:   bbtk
 Module:    $RCSfile: bbtkFactory.cxx,v $
 Language:  C++
 
-Date:      $Date: 2008/04/18 12:59:15 $
-Version:   $Revision: 1.33 $
+Date:      $Date: 2008/04/21 11:38:19 $
+Version:   $Revision: 1.34 $
                                                                                 
 
 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
@@ -456,13 +456,9 @@ namespace bbtk
     bbtkDebugMessageInc("Kernel",9,"Factory::InsertPackage(\""<<
                         p->GetName()<<"\")"<<std::endl);
 
-    std::cout << p.use_count() <<std::endl;
-
     p->AddFactory(GetThisPointer<Factory>());
     mPackageMap[p->GetName()] = p;
 
-    std::cout << p.use_count() <<std::endl;
-
     bbtkDebugDecTab("Kernel",9);
   }
   //===================================================================