]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkConnection.h
*** empty log message ***
[bbtk.git] / kernel / src / bbtkConnection.h
index b75cb20db5b6d702b7842fce5fea430327714daf..47c8e92a0da593a0e1d9eab6ccb190f7ae642456 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkConnection.h,v $
   Language:  C++
-  Date:      $Date: 2008/03/07 10:21:30 $
-  Version:   $Revision: 1.3 $
+  Date:      $Date: 2008/04/08 06:59:30 $
+  Version:   $Revision: 1.4 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See doc/license.txt or
@@ -56,10 +56,12 @@ namespace bbtk
     /// Ctor 
     Connection(BlackBox* from, const std::string& output,
               BlackBox* to, const std::string& input,
-              const Factory* f );
+              const Factory* f);
     /// Dtor
     ~Connection();
 
+    void Clear();
+    
     /// Amont direction pipeline processing
     /// 1) call bbBackwardUpdate(this) on the upstream box
     /// 2) copies the upstream box output to the downstream box input adapting it if needed
@@ -82,6 +84,8 @@ namespace bbtk
     /// Returns the input of the final black box of the connection
     const std::string& GetBlackBoxToInput() const { return mInput; }
 
+    /// Sets the output of the initial black box of the connection
+    void SetBlackBoxFromOutput(const std::string& o) { mOutput = o; }
   protected:
     /// Black box origin of the connection
     BlackBox* mFrom;