Program: bbtk
Module: $RCSfile: bbtkBlackBoxInputConnector.cxx,v $
Language: C++
- Date: $Date: 2008/04/18 12:59:15 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2008/04/24 10:11:28 $
+ Version: $Revision: 1.5 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
namespace bbtk
{
BlackBoxInputConnector::BlackBoxInputConnector(BlackBox::Pointer b)
- : mBox(b), mConnection(), mStatus(MODIFIED)
+ : mBox(b), mConnection(0), mStatus(MODIFIED)
{
bbtkDebugMessage("Kernel",9,"BlackBoxInputConnector::BlackBoxInputConnector()"<<std::endl);
}
bbtkDebugDecTab("Kernel",9);
}
- void BlackBoxInputConnector::SetConnection(Connection::Pointer c)
+ void BlackBoxInputConnector::SetConnection(Connection* c)
{
bbtkDebugMessage("Kernel",9,"BlackBoxInputConnector::SetConnection("<<c<<")"<<std::endl);
mConnection = c;
}
- void BlackBoxInputConnector::UnsetConnection(Connection::Pointer c)
+ void BlackBoxInputConnector::UnsetConnection(Connection* c)
{
bbtkDebugMessage("Kernel",9,"BlackBoxInputConnector::UnsetConnection("
<<c<<")"<<std::endl);
- mConnection.reset();
+ mConnection = 0; //.reset();
}
IOStatus BlackBoxInputConnector::BackwardUpdate()
{
- bbtkDebugMessageInc("Process",4,"BlackBoxInputConnector::BackwardUpdate()"
- <<std::endl);
+ bbtkDebugMessage("process",9,"==> BlackBoxInputConnector::BackwardUpdate()"
+ <<std::endl);
- if (mConnection.lock())
+ if (mConnection) //.lock())
{
- IOStatus s = mConnection.lock()->BackwardUpdate();
+ IOStatus s = mConnection->BackwardUpdate();
mStatus = s;
}
else
mStatus = UPTODATE;
}
- bbtkDecTab("Process",4);
-
return mStatus;
}