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
namespace bbtk
{
+
+//EED
+ static bool bbmgSomeBoxExecuting = false;
+ static bool bbmgFreezeExecution = false;
+ static std::set<BlackBox*> bbmgExecutionList;
+
+
//=========================================================================
BlackBox::BlackBox(const std::string &name)
: bbmName(name), bbmStatus(MODIFIED),
}
//=========================================================================
+ 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*> BlackBox::bbmgExecutionList;
+*/
//=========================================================================