]> Creatis software - bbtk.git/blob - kernel/src/bbtkAtomicBlackBoxInputDescriptor.cxx
*** empty log message ***
[bbtk.git] / kernel / src / bbtkAtomicBlackBoxInputDescriptor.cxx
1 /*=========================================================================
2                                                                                 
3   Program:   bbtk
4   Module:    $RCSfile: bbtkAtomicBlackBoxInputDescriptor.cxx,v $
5   Language:  C++
6   Date:      $Date: 2008/04/08 06:59:29 $
7   Version:   $Revision: 1.2 $
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::AtomicBlackBoxInputDescriptor : structure containing the description of a AtomicBlackBox input (name, description, type, functor)
22  */
23 #include "bbtkAtomicBlackBoxInputDescriptor.h"
24
25
26 namespace bbtk
27 {
28   
29   AtomicBlackBoxInputDescriptor::
30   AtomicBlackBoxInputDescriptor( TypeInfo creator_type_info,
31                                  const std::string& name,
32                                  const std::string& description,
33                                  const std::string& nature,
34                                  AtomicBlackBoxGetFunctor* getfunctor,
35                                  AtomicBlackBoxSetFunctor* setfunctor,
36                                  bool copy_construct) 
37     : 
38     BlackBoxInputDescriptor(creator_type_info,
39                             name,description,
40                             nature,
41                             copy_construct,
42                             MANDATORY),
43     mGetFunctor(getfunctor),
44     mSetFunctor(setfunctor)
45   {  
46     bbtkDebugMessage("Kernel",9,
47                      "AtomicBlackBoxInputDescriptor::"
48                      <<"AtomicBlackBoxInputDescriptor(\""
49                      <<name<<"\",\""<<description<<"\",\""
50                      <<nature<<"\","
51                      <<getfunctor<<","<<setfunctor<<","
52                      <<copy_construct<<")"<<std::endl);
53   }
54
55
56
57   AtomicBlackBoxInputDescriptor::~AtomicBlackBoxInputDescriptor()
58   {
59     bbtkDebugMessage("Kernel",9,
60                      "AtomicBlackBoxInputDescriptor::"
61                      <<"~AtomicBlackBoxInputDescriptor(\""
62                      <<GetName()<<"\",\""<<GetDescription()<<"\","
63                      <<mGetFunctor<<","<<mSetFunctor<<")"<<std::endl);
64   } 
65 }