1 /*=========================================================================
4 Module: $RCSfile: bbtkUserBlackBoxInputDescriptor.cxx,v $
6 Date: $Date: 2008/02/05 13:23:46 $
7 Version: $Revision: 1.2 $
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.
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.
17 =========================================================================*/
21 * \brief Class bbtk::UserBlackBoxInputDescriptor : structure containing the description of a UserBlackBox input (name, description, type, functor)
23 #include "bbtkUserBlackBoxInputDescriptor.h"
29 UserBlackBoxInputDescriptor::UserBlackBoxInputDescriptor( const std::string& name,
30 const std::string& description,
31 UserBlackBoxGetFunctor* getfunctor,
32 UserBlackBoxSetFunctor* setfunctor,
35 BlackBoxInputDescriptor(name,description,MANDATORY,copy_construct),
36 mGetFunctor(getfunctor),
37 mSetFunctor(setfunctor)
39 bbtkDebugMessage("Kernel",9,
40 "UserBlackBoxInputDescriptor::"
41 <<"UserBlackBoxInputDescriptor(\""
42 <<name<<"\",\""<<description<<"\","
43 <<getfunctor<<","<<setfunctor<<","
44 <<copy_construct<<")"<<std::endl);
49 UserBlackBoxInputDescriptor::~UserBlackBoxInputDescriptor()
51 bbtkDebugMessage("Kernel",9,
52 "UserBlackBoxInputDescriptor::"
53 <<"~UserBlackBoxInputDescriptor(\""
54 <<GetName()<<"\",\""<<GetDescription()<<"\","
55 <<mGetFunctor<<","<<mSetFunctor<<")"<<std::endl);