]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkUserBlackBoxDescriptor.h
*** empty log message ***
[bbtk.git] / kernel / src / bbtkUserBlackBoxDescriptor.h
index 7f42a759dedcc89fda9bf7516c9d96cfebd19797..5346a28e792a3f3775724ce2ba41d8e57b85119e 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkUserBlackBoxDescriptor.h,v $
   Language:  C++
-  Date:      $Date: 2008/01/22 15:02:00 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2008/02/06 14:14:22 $
+  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
@@ -41,19 +41,33 @@ namespace bbtk
   public:
     UserBlackBoxDescriptor() 
     {  
-      AddInputDescriptor(new bbtk::UserBlackBoxInputDescriptor("BoxProcessMode",
-                                                              "Set the process mode of the box (Pipeline | Always | Reactive)", 
-                                                              new bbtk::UserBlackBoxTGetFunctor<BlackBox,std::string,std::string>(&BlackBox::bbGetInputBoxProcessMode), 
-                                                              new bbtk::UserBlackBoxTSetFunctor<BlackBox,std::string,std::string>(&BlackBox::bbSetInputBoxProcessMode) ) );
-      AddInputDescriptor(new bbtk::UserBlackBoxInputDescriptor("BoxExecute",
-                                                              "Any change signal received by this input executes the box", 
-                                                              new bbtk::UserBlackBoxTGetFunctor<BlackBox,Void,Void>(&BlackBox::bbGetInputBoxExecute), 
-                                                              new bbtk::UserBlackBoxTSetFunctor<BlackBox,Void,Void>(&BlackBox::bbSetInputBoxExecute) ) );
-      
-      AddOutputDescriptor(new bbtk::UserBlackBoxOutputDescriptor("BoxChange",
-                                                                "Propagates modification of the box", 
-                                                                new bbtk::UserBlackBoxTGetFunctor<BlackBox,Void,Void>(&BlackBox::bbGetOutputBoxChange), 
-                                                                new bbtk::UserBlackBoxTSetFunctor<BlackBox,Void,Void>(&BlackBox::bbSetOutputBoxChange) ) );
+      // Creates the input 'BoxProcessMode'
+      AddInputDescriptor
+       (new 
+        bbtk::UserBlackBoxInputDescriptor
+        (typeid(UserBlackBoxDescriptor),
+         "BoxProcessMode",
+         "Sets the processing mode of the box (Pipeline | Always | Reactive)", 
+         new bbtk::UserBlackBoxTGetFunctor<BlackBox,std::string,std::string>(&BlackBox::bbGetInputBoxProcessMode), 
+         new bbtk::UserBlackBoxTSetFunctor<BlackBox,std::string,std::string>(&BlackBox::bbSetInputBoxProcessMode) ) );
+      // Creates the input 'BoxExecute'
+      AddInputDescriptor
+       (new
+        bbtk::UserBlackBoxInputDescriptor
+        (typeid(UserBlackBoxDescriptor),
+         "BoxExecute",
+         "Any signal received by this input executes the box", 
+         new bbtk::UserBlackBoxTGetFunctor<BlackBox,Void,Void>(&BlackBox::bbGetInputBoxExecute), 
+         new bbtk::UserBlackBoxTSetFunctor<BlackBox,Void,Void>(&BlackBox::bbSetInputBoxExecute) ) );
+      // Creates the output 'BoxChange'      
+      AddOutputDescriptor
+       (new 
+        bbtk::UserBlackBoxOutputDescriptor
+        (typeid(UserBlackBoxDescriptor),
+         "BoxChange",
+         "Signal modifications of the box", 
+         new bbtk::UserBlackBoxTGetFunctor<BlackBox,Void,Void>(&BlackBox::bbGetOutputBoxChange), 
+         new bbtk::UserBlackBoxTSetFunctor<BlackBox,Void,Void>(&BlackBox::bbSetOutputBoxChange) ) );
     }
   };