X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkBlackBox.cxx;h=bb409a1be3297c99c44cd5d4cd698b27fe126a16;hb=b9da3baf83b7791357c78322e3280314ec782f40;hp=94610b0645b0cde78dedb497d4466e5d10522ff3;hpb=c03be5662c1ea498e612cbaa9f9b7a9988a65765;p=bbtk.git diff --git a/kernel/src/bbtkBlackBox.cxx b/kernel/src/bbtkBlackBox.cxx index 94610b0..bb409a1 100644 --- a/kernel/src/bbtkBlackBox.cxx +++ b/kernel/src/bbtkBlackBox.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkBlackBox.cxx,v $ Language: C++ -Date: $Date: 2008/03/07 08:40:14 $ -Version: $Revision: 1.6 $ +Date: $Date: 2008/03/11 18:46:47 $ +Version: $Revision: 1.7 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See doc/license.txt or @@ -35,6 +35,13 @@ PURPOSE. See the above copyright notices for more information. namespace bbtk { + +//EED + static bool bbmgSomeBoxExecuting = false; + static bool bbmgFreezeExecution = false; + static std::set bbmgExecutionList; + + //========================================================================= BlackBox::BlackBox(const std::string &name) : bbmName(name), bbmStatus(MODIFIED), @@ -1038,11 +1045,39 @@ namespace bbtk } //========================================================================= + bool BlackBox::bbGlobalGetSomeBoxExecuting() + { + return bbmgSomeBoxExecuting; + } + + void BlackBox::bbGlobalSetSomeBoxExecuting(bool b) + { + bbmgSomeBoxExecuting = b; + } + + void BlackBox::bbGlobalSetFreezeExecution(bool b) + { + bbmgFreezeExecution = b; + } + + bool BlackBox::bbGlobalGetFreezeExecution() + { + return bbmgFreezeExecution; + } + + void BlackBox::bbGlobalAddToExecutionList( BlackBox* b ) + { + bbmgExecutionList.insert(b); + } + + //========================================================================= // Static members initialization +/*EED bool BlackBox::bbmgSomeBoxExecuting = false; bool BlackBox::bbmgFreezeExecution = false; std::set BlackBox::bbmgExecutionList; +*/ //=========================================================================