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