X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkBlackBoxInputConnector.h;h=4d6a91fa62c0baa944a7a6c6bbe6fa004234c4df;hb=731d9ee262e286a24e3ea2776d8e914950840a2c;hp=ff25f5138fd558179fe223ad42193f67bf70f71e;hpb=bfd7e9034cbfd9c535e98ccb302c08e5e42da8c6;p=bbtk.git diff --git a/kernel/src/bbtkBlackBoxInputConnector.h b/kernel/src/bbtkBlackBoxInputConnector.h index ff25f51..4d6a91f 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/12/11 09:50:35 $ - Version: $Revision: 1.7 $ + Date: $Date: 2009/06/08 14:50:03 $ + Version: $Revision: 1.8 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -42,6 +42,7 @@ #define __bbtkBlackBoxInputConnector_h__ #include "bbtkConnection.h" +#include "bbtkPimpl.h" #include namespace bbtk @@ -58,38 +59,37 @@ namespace bbtk BlackBoxInputConnector(BlackBoxPointer b); /// Dtor ~BlackBoxInputConnector(); + /// Sets a connection void SetConnection(Connection* c); /// Unsets the connection /// The parameter is USELESS today but would be useful if we allow multiple connections on inputs void UnsetConnection(Connection* c); - - // Recursive execution - void RecursiveExecute(); - /// Returns the connection plugged into this input (const) - Connection* GetConnection() const { return mConnection; } + Connection* GetConnection() const; /// Returns true iff a connection is connected to it - bool IsConnected() const { return (mConnection != 0); } + bool IsConnected() const; + // Recursive execution + void RecursiveExecute(); + + /// Returns the status of the input - IOStatus GetStatus() const { return mStatus; } + IOStatus GetStatus() const; /// Sets the status of the input - void SetStatus(IOStatus s) { mStatus = s; } - + void SetStatus(IOStatus 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 | OUTOFDATE) - IOStatus mStatus; + BlackBoxPointer GetBlackBox() const; + + + /// Private implementation + BBTK_DECLARE_PIMPL(BlackBoxInputConnector); + private: + /// Purposedly not implemented + BlackBoxInputConnector(const BlackBoxInputConnector&); }; }