]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkConnection.h
Compiles de nuevo with no global factory
[bbtk.git] / kernel / src / bbtkConnection.h
index 4a7996844034dea487967bf1664fa49849fc9b6d..b75cb20db5b6d702b7842fce5fea430327714daf 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkConnection.h,v $
   Language:  C++
-  Date:      $Date: 2008/02/20 16:05:38 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2008/03/07 10:21:30 $
+  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
 #define __bbtkConnection_h__
 
 #include "bbtkSystem.h"
+
 #include <string>
 
 namespace bbtk
 {
+
+  class Factory;
+
   /// 
   typedef int IOStatus;
   /// 
@@ -51,7 +55,8 @@ namespace bbtk
   public:
     /// Ctor 
     Connection(BlackBox* from, const std::string& output,
-              BlackBox* to, const std::string& input   );
+              BlackBox* to, const std::string& input,
+              const Factory* f );
     /// Dtor
     ~Connection();
 
@@ -93,6 +98,9 @@ namespace bbtk
     /// Adaptor black box if needed
     BlackBox* mAdaptor;
 
+    /// The factory used to create adaptors
+    const Factory* mFactory;
+
     /// Is the connection input type is any<thing> ?
     bool mFromAny;