]> 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/02/06 14:14:22 $
7   Version:   $Revision: 1.3 $
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::
30   UserBlackBoxInputDescriptor( TypeInfo creator_type_info,
31                                const std::string& name,
32                                const std::string& description,
33                                UserBlackBoxGetFunctor* getfunctor,
34                                UserBlackBoxSetFunctor* setfunctor,
35                                bool copy_construct) 
36     : 
37     BlackBoxInputDescriptor(creator_type_info,
38                             name,description,MANDATORY,copy_construct),
39     mGetFunctor(getfunctor),
40     mSetFunctor(setfunctor)
41   {  
42     bbtkDebugMessage("Kernel",9,
43                      "UserBlackBoxInputDescriptor::"
44                      <<"UserBlackBoxInputDescriptor(\""
45                      <<name<<"\",\""<<description<<"\","
46                      <<getfunctor<<","<<setfunctor<<","
47                      <<copy_construct<<")"<<std::endl);
48   }
49
50
51
52   UserBlackBoxInputDescriptor::~UserBlackBoxInputDescriptor()
53   {
54     bbtkDebugMessage("Kernel",9,
55                      "UserBlackBoxInputDescriptor::"
56                      <<"~UserBlackBoxInputDescriptor(\""
57                      <<GetName()<<"\",\""<<GetDescription()<<"\","
58                      <<mGetFunctor<<","<<mSetFunctor<<")"<<std::endl);
59   } 
60 }