]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkBlackBoxOutputConnector.h
=== MAJOR RELEASE ====
[bbtk.git] / kernel / src / bbtkBlackBoxOutputConnector.h
index dab12742c24cece2d395837a7b46d92bb99e3fd6..1ec2c361aa2f68236660423c18fcb733d6b2e43a 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkBlackBoxOutputConnector.h,v $
   Language:  C++
-  Date:      $Date: 2008/01/22 15:02:00 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2008/04/18 12:59:15 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -42,15 +42,16 @@ namespace bbtk
      
     BlackBoxOutputConnector();
     ~BlackBoxOutputConnector();
-    void SetConnection(Connection* c);
-    void UnsetConnection(Connection* c);
+    void SetConnection(Connection::Pointer c);
+    void UnsetConnection(Connection::Pointer c);
     //IOStatus Update();
     void SetModifiedStatus();
-    const std::vector<Connection*>& GetConnectionVector() const { return mConnection; }
+    typedef std::vector<Connection::WeakPointer> ConnectionVector;
+    const ConnectionVector& GetConnectionVector() const { return mConnection; }
     
   private:
     /// The vector of output connections
-    std::vector<Connection*> mConnection;
+    ConnectionVector mConnection;
     /// The status of the output 
     //IOStatus mStatus;
   };