1 /*=========================================================================
4 Module: $RCSfile: bbtkBlackBoxOutputConnector.cxx,v $
6 Date: $Date: 2008/01/22 15:02:00 $
7 Version: $Revision: 1.1 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
21 * \brief Class bbtk::BlackBoxOutputConnector :
24 #include "bbtkBlackBoxOutputConnector.h"
25 #include "bbtkMessageManager.h"
26 #include "bbtkBlackBox.h"
27 //#include <algorithm>
32 BlackBoxOutputConnector::BlackBoxOutputConnector()
33 // : mStatus(MODIFIED)
35 bbtkDebugMessage("Core",9,"BlackBoxOutputConnector::BlackBoxOutputConnector()"<<std::endl);
38 BlackBoxOutputConnector::~BlackBoxOutputConnector()
40 bbtkDebugMessageInc("Core",9,
41 "BlackBoxOutputConnector::~BlackBoxOutputConnector()"
43 std::vector<Connection*>::iterator i;
44 for (i=mConnection.begin();i!=mConnection.end();++i)
48 bbtkDebugDecTab("Core",9);
52 void BlackBoxOutputConnector::SetConnection(Connection* c)
54 bbtkDebugMessage("Core",9,"BlackBoxOutputConnector::SetConnection("
56 mConnection.push_back(c);
62 void BlackBoxOutputConnector::UnsetConnection(Connection* c)
64 bbtkDebugMessageInc("Core",9,"BlackBoxOutputConnector::UnsetConnection("
67 std::vector<Connection*>::iterator i;
68 for (i=mConnection.begin();i!=mConnection.end();++i)
72 //= std::find(mConnection,c);
73 if (i==mConnection.end())
75 bbtkError("no connexion "<<c);
79 bbtkDebugDecTab("Core",9);
84 void BlackBoxOutputConnector::SetModifiedStatus()
86 bbtkDebugMessageInc("Process",5,
87 "BlackBoxOutputConnector::SetModifiedStatus()"
89 std::vector<Connection*>::iterator i;
90 for (i=mConnection.begin();i!=mConnection.end();++i)
92 (*i)->SetModifiedStatus();
95 bbtkDebugDecTab("Process",5);