]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkAtomicBlackBoxGetSetFunctor.h
Feature #1774
[bbtk.git] / kernel / src / bbtkAtomicBlackBoxGetSetFunctor.h
index 6eec77c05a09453c86372d315fe698262d239af4..3d165a8d6de37b7c86777c565e91ebdc74fb9565 100644 (file)
@@ -1,19 +1,36 @@
+/*
+ # ---------------------------------------------------------------------
+ #
+ # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+ #                        pour la SantÈ)
+ # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+ # Previous Authors : Laurent Guigues, Jean-Pierre Roux
+ # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
+ #
+ #  This software is governed by the CeCILL-B license under French law and
+ #  abiding by the rules of distribution of free software. You can  use,
+ #  modify and/ or redistribute the software under the terms of the CeCILL-B
+ #  license as circulated by CEA, CNRS and INRIA at the following URL
+ #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+ #  or in the file LICENSE.txt.
+ #
+ #  As a counterpart to the access to the source code and  rights to copy,
+ #  modify and redistribute granted by the license, users are provided only
+ #  with a limited warranty  and the software's author,  the holder of the
+ #  economic rights,  and the successive licensors  have only  limited
+ #  liability.
+ #
+ #  The fact that you are presently reading this means that you have had
+ #  knowledge of the CeCILL-B license and that you accept its terms.
+ # ------------------------------------------------------------------------ */
+
+
 /*=========================================================================
-                                                                                
   Program:   bbtk
   Module:    $RCSfile: bbtkAtomicBlackBoxGetSetFunctor.h,v $
   Language:  C++
-  Date:      $Date: 2008/04/24 10:11:27 $
-  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
-  http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
-                                                                                
-     This software is distributed WITHOUT ANY WARRANTY; without even
-     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
-     PURPOSE.  See the above copyright notices for more information.
-                                                                                
+  Date:      $Date: 2012/11/16 08:49:01 $
+  Version:   $Revision: 1.6 $
 =========================================================================*/
 
 
@@ -52,6 +69,8 @@ namespace bbtk
   public:
     /// Default constructor
     AtomicBlackBoxGetFunctor() {}
+    /// Dtor
+    virtual ~AtomicBlackBoxGetFunctor() {}
     /// Abstract method which applies the "Get" function of AtomicBlackBox o
     virtual Data Get(AtomicBlackBox* o) = 0;
     /// 
@@ -73,6 +92,8 @@ namespace bbtk
   public:
     /// Default constructor
     AtomicBlackBoxSetFunctor() {}
+    /// Dtor
+    virtual ~AtomicBlackBoxSetFunctor() {}
     /// Abstract method which applies the "Set" function of AtomicBlackBox o
     virtual void Set(AtomicBlackBox* o, const Data&) = 0;
     /// 
@@ -107,7 +128,7 @@ namespace bbtk
     AtomicBlackBoxTGetFunctor(GetMethodPointerType g) :
       mGetMethodPointer(g)
       {
-       bbtkDebugMessage("Data",9,"AtomicBlackBoxTGetFunctor<"<<
+       bbtkDebugMessage("data",9,"AtomicBlackBoxTGetFunctor<"<<
                         TypeName<UBB>()<<","<<
                         TypeName<T>()<<","<<
                         TypeName<TRETURN>()<<
@@ -117,7 +138,7 @@ namespace bbtk
     /// Concrete application of the Get method of object o
     Data Get(AtomicBlackBox* o) 
     {
-      bbtkDebugMessage("Data",9,"AtomicBlackBoxTGetFunctor<"<<
+      bbtkDebugMessage("data",9,"AtomicBlackBoxTGetFunctor<"<<
                       TypeName<UBB>()<<","<<
                       TypeName<T>()<<","<<
                       TypeName<TRETURN>()<<
@@ -154,7 +175,7 @@ namespace bbtk
     AtomicBlackBoxTSetFunctor(SetMethodPointerType s) :
       mSetMethodPointer(s) 
       {
-       bbtkDebugMessage("Data",9,"AtomicBlackBoxTSetFunctor<"<<
+       bbtkDebugMessage("data",9,"AtomicBlackBoxTSetFunctor<"<<
                        TypeName<UBB>()<<","<<
                        TypeName<T>()<<","<<
                        TypeName<TACCESS>()<<
@@ -164,7 +185,7 @@ namespace bbtk
     /// Concrete application of the Set method of object o
     void Set(AtomicBlackBox* o, const Data& d)
     { 
-      bbtkDebugMessage("Data",9,"AtomicBlackBoxTSetfunctor<"<<
+      bbtkDebugMessage("data",9,"AtomicBlackBoxTSetfunctor<"<<
                        TypeName<UBB>()<<","<<
                        TypeName<T>()<<","<<
                        TypeName<TACCESS>()<<
@@ -215,7 +236,7 @@ namespace bbtk
     AtomicBlackBoxTSetFunctor(SetMethodPointerType s) :
       mSetMethodPointer(s) 
     {
-      bbtkDebugMessage("Data",9,"AtomicBlackBoxTSetFunctor<"<<
+      bbtkDebugMessage("data",9,"AtomicBlackBoxTSetFunctor<"<<
                       TypeName<UBB>()<<","<<
                       TypeName<T*>()<<","<<
                       TypeName<TACCESS*>()<<
@@ -225,7 +246,7 @@ namespace bbtk
     /// Concrete application of the Set method of object o
     void Set(AtomicBlackBox* o, const Data& d)
     { 
-      bbtkDebugMessage("Data",9,"AtomicBlackBoxTSetfunctor<"<<
+      bbtkDebugMessage("data",9,"AtomicBlackBoxTSetfunctor<"<<
                       TypeName<UBB>()<<","<<
                       TypeName<T*>()<<","<<
                       TypeName<TACCESS*>()<<
@@ -244,7 +265,7 @@ namespace bbtk
  
     virtual void BruteForceSetPointer(AtomicBlackBox* o, void* p) 
     {  
-      bbtkDebugMessage("Data",9,"AtomicBlackBoxTSetFunctor<"
+      bbtkDebugMessage("data",9,"AtomicBlackBoxTSetFunctor<"
                       <<TypeName<UBB>()<<","
                       <<TypeName<T*>()<<","
                       <<TypeName<TACCESS*>()