/*========================================================================= Program: bbtk Module: $RCSfile: bbtkBlackBoxOutputConnector.cxx,v $ Language: C++ Date: $Date: 2008/04/09 11:16:57 $ Version: $Revision: 1.3 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ /** * \file * \brief Class bbtk::BlackBoxOutputConnector : */ #include "bbtkBlackBoxOutputConnector.h" #include "bbtkMessageManager.h" #include "bbtkBlackBox.h" //#include namespace bbtk { BlackBoxOutputConnector::BlackBoxOutputConnector() // : mStatus(MODIFIED) { bbtkDebugMessage("Kernel",9,"BlackBoxOutputConnector::BlackBoxOutputConnector()"<::iterator i; for (i=mConnection.begin();i!=mConnection.end();++i) { delete *i; } bbtkDebugDecTab("Kernel",9); } /// void BlackBoxOutputConnector::SetConnection(Connection* c) { bbtkDebugMessage("Kernel",9,"BlackBoxOutputConnector::SetConnection(" <Check(); std::vector::iterator i = find(mConnection.begin(),mConnection.end(),c); if (i==mConnection.end()) { bbtkInternalError("BlackBoxOutputConnector::UnsetConnection("<::iterator i; for (i=mConnection.begin();i!=mConnection.end();++i) { (*i)->SetModifiedStatus(); } bbtkDebugDecTab("Process",5); } } // namespace bbtk