X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkComplexBlackBox.cxx;h=47b983717e5b27d0b34b0c68470ca041fb499862;hb=cc134f89048428aca99fa855a7e1e87c815a3413;hp=c06e715270299414e754be1022d8947c1075cc8b;hpb=4a50c01b24b6c1b4eb10ff0f7a56f9e60752ad01;p=bbtk.git diff --git a/kernel/src/bbtkComplexBlackBox.cxx b/kernel/src/bbtkComplexBlackBox.cxx index c06e715..47b9837 100644 --- a/kernel/src/bbtkComplexBlackBox.cxx +++ b/kernel/src/bbtkComplexBlackBox.cxx @@ -1,27 +1,40 @@ -/*========================================================================= - -Program: bbtk -Module: $RCSfile: bbtkComplexBlackBox.cxx,v $ -Language: C++ -Date: $Date: 2008/04/24 10:24:58 $ -Version: $Revision: 1.18 $ - -Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de -l'Image). All rights reserved. See Doc/License.txt or -http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details. - -This software is distributed WITHOUT ANY WARRANTY; without even -the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -PURPOSE. See the above copyright notices for more information. - +/*========================================================================= + Program: bbtk + Module: $RCSfile: bbtkComplexBlackBox.cxx,v $ + Language: C++ + Date: $Date: 2008/12/12 12:11:21 $ + Version: $Revision: 1.24 $ =========================================================================*/ +/* --------------------------------------------------------------------- + +* Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale) +* Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux +* +* This software is governed by the CeCILL-B license under French law and +* abiding by the rules of distribution of free software. You can use, +* modify and/ or redistribute the software under the terms of the CeCILL-B +* license as circulated by CEA, CNRS and INRIA at the following URL +* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +* or in the file LICENSE.txt. +* +* As a counterpart to the access to the source code and rights to copy, +* modify and redistribute granted by the license, users are provided only +* with a limited warranty and the software's author, the holder of the +* economic rights, and the successive licensors have only limited +* liability. +* +* The fact that you are presently reading this means that you have had +* knowledge of the CeCILL-B license and that you accept its terms. +* ------------------------------------------------------------------------ */ + /** * \file * \brief class bbtk::ComplexBlackBox : user defined complex black boxes */ #include "bbtkComplexBlackBox.h" +#include "bbtkWx.h" #include "bbtkBlackBoxDescriptor.h" #include "bbtkFactory.h" #include "bbtkConfigurationFile.h" @@ -82,7 +95,7 @@ namespace bbtk // We have to make the shared_ptr on this because it is used // in bbUnsafeAddBlackBox ! - MakePointer(this,true); + MakeBlackBoxPointer(this,true); BlackBoxMapType::const_iterator i; for ( i = from.mBlackBoxMap.begin(); i != from.mBlackBoxMap.end(); ++i ) @@ -128,6 +141,24 @@ namespace bbtk bbtkDebugMessage("object",3, "==> ComplexBlackBox::~ComplexBlackBox() [" <bbDesallocateConnectors(); + + bbtkDebugMessage("object",3, + "<== ComplexBlackBox::~ComplexBlackBox() [" + < ComplexBlackBox::Clear() [" + < Releasing connections"< Releasing boxes"<bbDesallocateConnectors(); - bbtkDebugMessage("object",3, - "<== ComplexBlackBox::~ComplexBlackBox() [" + "<== ComplexBlackBox::Clear() [" < ComplexBlackBox::bbSetModifiedStatus(" - <GetBlackBox()->bbSetModifiedStatus(c); - - /* - bbtkDebugMessage("modified",1, - "<== ComplexBlackBox::bbSetModifiedStatus(" - < ComplexBlackBox::bbBackwardUpdate(" - <<(caller?caller->GetFullName():"0")<<") [" - <GetBlackBoxFrom()->bbGetFullName() - <<"."<GetBlackBoxFromOutput()<<"----" - <GetOriginalBlackBoxFrom()->bbGetFullName() - <<"."<GetOriginalBlackBoxFromOutput()<GetOutputDescriptorMap(); - BlackBoxDescriptor::OutputDescriptorMapType::const_iterator i - = omap.find(caller->GetBlackBoxFromOutput()); - if (i!=omap.end()) - { - // Cast the BBOutputDescriptor into a ComplexBBOutputDescriptor - ComplexBlackBoxOutputDescriptor* d = - (ComplexBlackBoxOutputDescriptor*)i->second; - // Get the internal box - BlackBox::Pointer b = bbUnsafeGetBlackBox ( d->GetTarget() ); - // Calls BackwardUpdate on it - bbtkDebugMessageInc("process",4,"Internal box connected to output : "<GetTarget()<GetBlackBoxFromOutput(); - // std::cout << "oldout = "<GetFullName()<<"' does not point to a valid output of the complex box !"); - } - - return s; + mExecutionList.push_back( name ); + + bbtkDebugDecTab("Kernel",9); } //==================================================================