From 43c011fc2bf41f4efa72b55ed11b2ddff27b5e49 Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Tue, 1 Mar 2011 14:50:28 +0000 Subject: [PATCH] Always vs BlackBox::Always --- kernel/src/bbtkBlackBox.cxx | 52 +++++++++++++---------------------- kernel/src/bbtkBlackBox.h | 54 +++++++++---------------------------- 2 files changed, 30 insertions(+), 76 deletions(-) diff --git a/kernel/src/bbtkBlackBox.cxx b/kernel/src/bbtkBlackBox.cxx index c35e82c..5e12c26 100644 --- a/kernel/src/bbtkBlackBox.cxx +++ b/kernel/src/bbtkBlackBox.cxx @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbtkBlackBox.cxx,v $ Language: C++ - Date: $Date: 2010/01/21 16:03:17 $ - Version: $Revision: 1.49 $ + Date: $Date: 2011/03/01 14:50:28 $ + Version: $Revision: 1.50 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -48,8 +48,6 @@ namespace bbtk { - - static bool bbmgSomeBoxExecuting = false; static bool bbmgFreezeExecution = false; static std::set bbmgExecutionList; @@ -281,7 +279,6 @@ namespace bbtk bbGetOutputConnectorMap()[o->second->GetName()] = new BlackBoxOutputConnector(GetThisPointer()); } - } //========================================================================= @@ -308,8 +305,7 @@ namespace bbtk delete (o->second); } - bbtkDebugDecTab("kernel",8); - + bbtkDebugDecTab("kernel",8); } //========================================================================= @@ -345,7 +341,6 @@ namespace bbtk } bbtkDebugDecTab("kernel",9); - } //========================================================================= @@ -358,7 +353,7 @@ namespace bbtk #ifdef USE_WXWIDGETS || Wx::IsSomeWindowAlive() #endif - ); + ); } //========================================================================= @@ -370,14 +365,14 @@ namespace bbtk const std::string& p = bbmBoxProcessMode; if ( (p == "0") || (p == "P") || (p == "p") || - (p == "Pipeline") || (p == "pipeline") ) return Pipeline; + (p == "Pipeline") || (p == "pipeline") ) return BlackBox::Pipeline; if ( (p == "1") || (p == "A") || (p == "a") || - (p == "Always") || (p == "always") ) return Always; + (p == "Always") || (p == "always") ) return BlackBox::Always; if ( (p == "2") || (p == "R") || (p == "r") || (p == "Reactive") || (p == "reactive") ) - return Reactive; + return BlackBox::Reactive; /* if ( (p == "3") || (p == "F") || (p == "f") || @@ -396,14 +391,14 @@ namespace bbtk //========================================================================= bool BlackBox::bbBoxProcessModeIsReactive() const { - return (bbGetBoxProcessModeValue() == Reactive); + return (bbGetBoxProcessModeValue() == BlackBox::Reactive); } //========================================================================= //========================================================================= bool BlackBox::bbBoxProcessModeIsAlways() const { - return (bbGetBoxProcessModeValue() == Always); + return (bbGetBoxProcessModeValue() == BlackBox::Always); } //========================================================================= @@ -480,7 +475,7 @@ namespace bbtk "=> BlackBox::bbSignalOutputModification(" <GetFullName()<<")" <second->SetConnection(c); // The input *MUST* be set OUTOFDATE to update its input on next execution bbSetStatusAndPropagate(i->second,OUTOFDATE); - + bbtkBlackBoxDebugMessage("connection",2, "<== BlackBox::bbConnectInput(\"" <GetFullName()<<")" - < BlackBox::bbConnectOutput(\""<GetFullName()<<")" <GetFullName()<<")" - < BlackBox::bbDisconnectInput(\""<GetFullName()<<")" - <