]> Creatis software - bbtk.git/blob - kernel/src/bbtkUserBlackBoxInputDescriptor.cxx
*** empty log message ***
[bbtk.git] / kernel / src / bbtkUserBlackBoxInputDescriptor.cxx
1 /*=========================================================================
2                                                                                 
3   Program:   bbtk
4   Module:    $RCSfile: bbtkUserBlackBoxInputDescriptor.cxx,v $
5   Language:  C++
6   Date:      $Date: 2008/01/22 15:02:00 $
7   Version:   $Revision: 1.1 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*/
18
19 /**
20  *  \file 
21  *  \brief Class bbtk::UserBlackBoxInputDescriptor : structure containing the description of a UserBlackBox input (name, description, type, functor)
22  */
23 #include "bbtkUserBlackBoxInputDescriptor.h"
24
25
26 namespace bbtk
27 {
28   
29   UserBlackBoxInputDescriptor::UserBlackBoxInputDescriptor( const std::string& name,
30                                                             const std::string& description,
31                                                             UserBlackBoxGetFunctor* getfunctor,
32                                                             UserBlackBoxSetFunctor* setfunctor,
33                                                             bool copy_construct) 
34     : 
35     BlackBoxInputDescriptor(name,description,MANDATORY,copy_construct),
36     mGetFunctor(getfunctor),
37     mSetFunctor(setfunctor)
38   {  
39     bbtkDebugMessage("Core",9,
40                      "UserBlackBoxInputDescriptor::"
41                      <<"UserBlackBoxInputDescriptor(\""
42                      <<name<<"\",\""<<description<<"\","
43                      <<getfunctor<<","<<setfunctor<<","
44                      <<copy_construct<<")"<<std::endl);
45   }
46
47
48
49   UserBlackBoxInputDescriptor::~UserBlackBoxInputDescriptor()
50   {
51     bbtkDebugMessage("Core",9,
52                      "UserBlackBoxInputDescriptor::"
53                      <<"~UserBlackBoxInputDescriptor(\""
54                      <<GetName()<<"\",\""<<GetDescription()<<"\","
55                      <<mGetFunctor<<","<<mSetFunctor<<")"<<std::endl);
56   } 
57 }