X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=kernel%2Fsrc%2FbbtkBlackBoxInputConnector.h;h=ff25f5138fd558179fe223ad42193f67bf70f71e;hb=d7e710c3fe8bd9c8c5fb79073bd5667b24c048f8;hp=d8cd58c56ba0d38dd207a3efc124c8e3649b1ada;hpb=6575a389b71b1b85c79e4444885becb76ecf16e4;p=bbtk.git diff --git a/kernel/src/bbtkBlackBoxInputConnector.h b/kernel/src/bbtkBlackBoxInputConnector.h index d8cd58c..ff25f51 100644 --- a/kernel/src/bbtkBlackBoxInputConnector.h +++ b/kernel/src/bbtkBlackBoxInputConnector.h @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbtkBlackBoxInputConnector.h,v $ Language: C++ - Date: $Date: 2008/10/17 08:18:12 $ - Version: $Revision: 1.4 $ + Date: $Date: 2008/12/11 09:50:35 $ + Version: $Revision: 1.7 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -64,23 +64,32 @@ namespace bbtk /// The parameter is USELESS today but would be useful if we allow multiple connections on inputs void UnsetConnection(Connection* c); - IOStatus BackwardUpdate(); + // Recursive execution + void RecursiveExecute(); /// Returns the connection plugged into this input (const) Connection* GetConnection() const { return mConnection; } /// Returns true iff a connection is connected to it bool IsConnected() const { return (mConnection != 0); } - /// Returns the status of the input (UPTODATE | MODIFIED) - const IOStatus& GetStatus() const { return mStatus; } - /// + + + /// Returns the status of the input + IOStatus GetStatus() const { return mStatus; } + /// Sets the status of the input + void SetStatus(IOStatus s) { mStatus = s; } + + + + /// Returns the black box which owns the connector BlackBoxPointer GetBlackBox() const { return mBox.lock(); } private: /// BlackBoxWeakPointer mBox; /// The connection plugged into the input Connection* mConnection; - /// The status of the input (UPTODATE | MODIFIED) + /// The status of the input (UPTODATE | MODIFIED | OUTOFDATE) IOStatus mStatus; + }; }