]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkComplexBlackBox.h
*** empty log message ***
[bbtk.git] / kernel / src / bbtkComplexBlackBox.h
index ae8a82af7c09dd4fdc3c4fb5e07c4ef234fa39c8..6c041f4b117065eda8a9f2d9f105d3bdd145f517 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkComplexBlackBox.h,v $
   Language:  C++
-  Date:      $Date: 2008/01/22 15:02:00 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2008/04/09 11:16:57 $
+  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
@@ -50,6 +50,8 @@ namespace bbtk
     // PUBLIC PART : ACCESSIBLE TO THE END-USER
     /// Returns the pointer on the box' descriptor
     BlackBoxDescriptor* bbGetDescriptor() const { return mDescriptor; }
+    /// Returns a pointer on a new instance with name <name>
+    //BlackBox* bbNew(const std::string& name);
     /// Returns a pointer on a clone of the box with name <name>
     BlackBox* bbClone(const std::string& name);
 
@@ -64,7 +66,10 @@ namespace bbtk
                                      void* data, 
                                      bool setModified = true);
 
-    ~ComplexBlackBox();
+     /// Connects the input <name> to the connection c
+    virtual void bbConnectInput( const std::string& name, Connection* c);
+    /// Connects the output <name> to the connection c
+    virtual void bbConnectOutput( const std::string& name, Connection* c);
 
     BlackBox* bbGetBlackBox( const std::string& name );
 
@@ -105,6 +110,7 @@ namespace bbtk
     virtual BlackBox *bbFindBlackBox(const std::string &blackboxname);
     
 
+    void Check(bool recursive=true);
 
   protected:
     //==================================================================
@@ -113,6 +119,8 @@ namespace bbtk
     ComplexBlackBox(const std::string &name, ComplexBlackBoxDescriptor* desc);
     /// Constructor from an existing box (copy) with a new name 
     ComplexBlackBox(ComplexBlackBox& from, const std::string &name);
+    // 
+   ~ComplexBlackBox();
 
     
   public: