X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkBlackBox.h;h=467e40c734d254bcb8064b9792e21efc68972ab1;hb=24e6d3d5d040c30878c7cbaf45db9bf001985713;hp=17ed4c199ab11ff1b33b0c9fdd9ee8b2d7475fa1;hpb=6575a389b71b1b85c79e4444885becb76ecf16e4;p=bbtk.git diff --git a/kernel/src/bbtkBlackBox.h b/kernel/src/bbtkBlackBox.h index 17ed4c1..467e40c 100644 --- a/kernel/src/bbtkBlackBox.h +++ b/kernel/src/bbtkBlackBox.h @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbtkBlackBox.h,v $ Language: C++ - Date: $Date: 2008/10/17 08:18:12 $ - Version: $Revision: 1.13 $ + Date: $Date: 2008/11/13 14:46:43 $ + Version: $Revision: 1.14 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -373,9 +373,14 @@ bool reaction = true); /// which means execute in response to an input change virtual bool bbCanReact() const; + /// Returns true iff the box is executing + bool bbGetExecuting() const { return bbmExecuting; } + protected: static void bbGlobalAddToExecutionList( BlackBox::Pointer b ); static void bbGlobalProcessExecutionList(); + /// Sets the bbmExecuting bool returned by bbGetExecuting + void bbSetExecuting(bool b) { bbmExecuting = b; } //================================================================== protected: @@ -415,6 +420,8 @@ bool reaction = true); // PRIVATE PART /// The status of the box IOStatus bbmStatus; + /// Is the box executing ? + bool bbmExecuting; /// The name of the black-box std::string bbmName; /// The name of the package to which it belongs