X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=kernel%2Fsrc%2FbbtkBlackBox.cxx;h=805dd6f98a14d912a8d95b7a7e04b878d8dd9530;hb=1688b52778caa9985ecea38aad38341817e0401a;hp=c35e82c78a5bb50c0eb4df6267a87b5cdd9eb518;hpb=b297410bce4fc9141ade21cbeca71061369b4932;p=bbtk.git diff --git a/kernel/src/bbtkBlackBox.cxx b/kernel/src/bbtkBlackBox.cxx index c35e82c..805dd6f 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/03 14:37:57 $ + Version: $Revision: 1.52 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -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 bbPipeline; if ( (p == "1") || (p == "A") || (p == "a") || - (p == "Always") || (p == "always") ) return Always; + (p == "Always") || (p == "always") ) return bbAlways; if ( (p == "2") || (p == "R") || (p == "r") || (p == "Reactive") || (p == "reactive") ) - return Reactive; + return bbReactive; /* if ( (p == "3") || (p == "F") || (p == "f") || @@ -396,14 +391,14 @@ namespace bbtk //========================================================================= bool BlackBox::bbBoxProcessModeIsReactive() const { - return (bbGetBoxProcessModeValue() == Reactive); + return (bbGetBoxProcessModeValue() == bbReactive); } //========================================================================= //========================================================================= bool BlackBox::bbBoxProcessModeIsAlways() const { - return (bbGetBoxProcessModeValue() == Always); + return (bbGetBoxProcessModeValue() == bbAlways); } //========================================================================= @@ -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()<<")" - <