]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkAtomicBlackBoxDescriptor.h
=== MAJOR RELEASE ====
[bbtk.git] / kernel / src / bbtkAtomicBlackBoxDescriptor.h
index 80201c64ea7fd10c84decda1a64cc9b378747f63..e9ab401e5c8ae2b64c375c4be67128a657033d03 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkAtomicBlackBoxDescriptor.h,v $
   Language:  C++
-  Date:      $Date: 2008/04/08 06:59:29 $
-  Version:   $Revision: 1.2 $
+  Date:      $Date: 2008/04/18 12:59:14 $
+  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
@@ -39,43 +39,15 @@ namespace bbtk
   class BBTK_EXPORT AtomicBlackBoxDescriptor : public bbtk::BlackBoxDescriptor
   {
   public:
-    AtomicBlackBoxDescriptor() 
-    {  
-      // Creates the input 'BoxProcessMode'
-      AddInputDescriptor
-       (new 
-        bbtk::AtomicBlackBoxInputDescriptor
-        (typeid(AtomicBlackBoxDescriptor),
-         "BoxProcessMode",
-         "Sets the processing mode of the box (Pipeline | Always | Reactive)",
-         "",
-         new bbtk::AtomicBlackBoxTGetFunctor<BlackBox,std::string,std::string>(&BlackBox::bbGetInputBoxProcessMode), 
-         new bbtk::AtomicBlackBoxTSetFunctor<BlackBox,std::string,std::string>(&BlackBox::bbSetInputBoxProcessMode) ) );
-      // Creates the input 'BoxExecute'
-      AddInputDescriptor
-       (new
-        bbtk::AtomicBlackBoxInputDescriptor
-        (typeid(AtomicBlackBoxDescriptor),
-         "BoxExecute",
-         "Any signal received by this input executes the box",
-         "",
-         new bbtk::AtomicBlackBoxTGetFunctor<BlackBox,Void,Void>(&BlackBox::bbGetInputBoxExecute), 
-         new bbtk::AtomicBlackBoxTSetFunctor<BlackBox,Void,Void>(&BlackBox::bbSetInputBoxExecute) ) );
-      // Creates the output 'BoxChange'      
-      AddOutputDescriptor
-       (new 
-        bbtk::AtomicBlackBoxOutputDescriptor
-        (typeid(AtomicBlackBoxDescriptor),
-         "BoxChange",
-         "Signal modifications of the box", 
-         "",
-         new bbtk::AtomicBlackBoxTGetFunctor<BlackBox,Void,Void>(&BlackBox::bbGetOutputBoxChange), 
-         new bbtk::AtomicBlackBoxTSetFunctor<BlackBox,Void,Void>(&BlackBox::bbSetOutputBoxChange) ) );
-      //
-      AddToCategory("atomic box");
-    }
+    /// Releases the descriptor
+    //    virtual void Release(bool release_package = true);
+
+  protected:
+    AtomicBlackBoxDescriptor();
+    virtual ~AtomicBlackBoxDescriptor();
+    virtual AtomicBlackBoxDescriptor::Pointer GetInstance() const = 0;
+
   };
-    
 }
 // namespace bbtk
 #endif