X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkUserBlackBoxMacros.h;h=10b12acff5d87463bb62337579546405db47d16d;hb=7eba604321498f7ed6333b7cbe9bf2aceb4ec30e;hp=2ff7aed90366949a269363f2d88b57b21ac2e6a4;hpb=2d76cd309d74d5f83d701d6bb0a4140d5d122b36;p=bbtk.git diff --git a/kernel/src/bbtkUserBlackBoxMacros.h b/kernel/src/bbtkUserBlackBoxMacros.h index 2ff7aed..10b12ac 100644 --- a/kernel/src/bbtkUserBlackBoxMacros.h +++ b/kernel/src/bbtkUserBlackBoxMacros.h @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkUserBlackBoxMacros.h,v $ Language: C++ - Date: $Date: 2008/01/30 09:28:16 $ - Version: $Revision: 1.3 $ + Date: $Date: 2008/02/06 14:14:22 $ + Version: $Revision: 1.7 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -38,18 +38,18 @@ public: \ inline static CLASS* bbNew(const std::string& name) \ { \ - bbtkDebugMessageInc("Core",9,#CLASS<<"::bbNew(\""<bbGetFullName()<<"]"< \ (&CLASS::bbGetInput##NAME), \ new bbtk::UserBlackBoxTSetFunctor \ @@ -282,7 +283,7 @@ /// Describes a UserBlackBox output (to be put inside the UBB description block) #define BBTK_OUTPUT(CLASS,NAME,DESCR,TYPE) \ AddOutputDescriptor(new bbtk::UserBlackBoxOutputDescriptor \ - (#NAME,DESCR, \ + (typeid(CLASS ## Descriptor),#NAME,DESCR, \ new bbtk::UserBlackBoxTGetFunctor \ (&CLASS::bbGetOutput##NAME), \ new bbtk::UserBlackBoxTSetFunctor \ @@ -293,7 +294,7 @@ /// Describes a UserBlackBox input (to be put inside the UBB description block) #define BBTK_INPUT_NOCOPY(CLASS,NAME,DESCR,TYPE) \ AddInputDescriptor(new bbtk::UserBlackBoxInputDescriptor \ - (#NAME,DESCR, \ + (typeid(CLASS ## Descriptor),#NAME,DESCR, \ new bbtk::UserBlackBoxTGetFunctor \ (&CLASS::bbGetInput##NAME), \ new bbtk::UserBlackBoxTSetFunctor \ @@ -305,7 +306,7 @@ /// Describes a UserBlackBox output (to be put inside the UBB description block) #define BBTK_OUTPUT_NOCOPY(CLASS,NAME,DESCR,TYPE) \ AddOutputDescriptor(new bbtk::UserBlackBoxOutputDescriptor \ - (#NAME,DESCR, \ + (typeid(CLASS ## Descriptor),#NAME,DESCR, \ new bbtk::UserBlackBoxTGetFunctor \ (&CLASS::bbGetOutput##NAME), \ new bbtk::UserBlackBoxTSetFunctor \ @@ -341,14 +342,14 @@ } \ CLASS ## Descriptor() \ { \ - bbtkDebugMessageInc("Core",9,#CLASS<<"Descriptor::"<<#CLASS \ + bbtkDebugMessageInc("Kernel",9,#CLASS<<"Descriptor::"<<#CLASS \ <<"Descriptor()"< \ @@ -363,7 +364,7 @@ /// Describes a template UserBlackBox input (to be put inside the template UBB description block) #define BBTK_TEMPLATE_INPUT(CLASS,NAME,DESCR,TYPE) \ AddInputDescriptor(new bbtk::UserBlackBoxInputDescriptor \ - (#NAME,DESCR, \ + (typeid(CLASS ## Descriptor),#NAME,DESCR, \ new bbtk::UserBlackBoxTGetFunctor,TYPE,TYPE > \ (&CLASS::bbGetInput##NAME), \ new bbtk::UserBlackBoxTSetFunctor,TYPE,TYPE > \ @@ -374,7 +375,7 @@ /// Describes a template UserBlackBox output (to be put inside the template UBB description block) #define BBTK_TEMPLATE_OUTPUT(CLASS,NAME,DESCR,TYPE) \ AddOutputDescriptor(new bbtk::UserBlackBoxOutputDescriptor \ - (#NAME,DESCR, \ + (typeid(CLASS ## Descriptor),#NAME,DESCR, \ new bbtk::UserBlackBoxTGetFunctor,TYPE,TYPE > \ (&CLASS::bbGetOutput##NAME), \ new bbtk::UserBlackBoxTSetFunctor,TYPE,TYPE > \ @@ -425,14 +426,14 @@ } \ CLASS ## Descriptor() \ { \ - bbtkDebugMessageInc("Core",9,#CLASS<<"Descriptor::"<<#CLASS \ + bbtkDebugMessageInc("Kernel",9,#CLASS<<"Descriptor::"<<#CLASS \ <<"Descriptor()"< \ @@ -458,14 +459,14 @@ } \ CLASS ## Descriptor() \ { \ - bbtkDebugMessageInc("Core",9,#CLASS<<"Descriptor::"<<#CLASS \ + bbtkDebugMessageInc("Kernel",9,#CLASS<<"Descriptor::"<<#CLASS \ <<"Descriptor()"< \ @@ -482,7 +483,7 @@ /// Describes a 2 template params UserBlackBox input (to be put inside the UBB description block) #define BBTK_TEMPLATE2_INPUT(CLASS,NAME,DESCR,TYPE) \ AddInputDescriptor(new bbtk::UserBlackBoxInputDescriptor \ - (#NAME,DESCR, \ + (typeid(CLASS ## Descriptor),#NAME,DESCR, \ new bbtk::UserBlackBoxTGetFunctor,TYPE,TYPE > \ (&CLASS::bbGetInput##NAME), \ new bbtk::UserBlackBoxTSetFunctor,TYPE,TYPE > \ @@ -493,7 +494,7 @@ /// Describes a 2 template params UserBlackBox output (to be put inside the UBB description block) #define BBTK_TEMPLATE2_OUTPUT(CLASS,NAME,DESCR,TYPE) \ AddOutputDescriptor(new bbtk::UserBlackBoxOutputDescriptor \ - (#NAME,DESCR, \ + (typeid(CLASS ## Descriptor),#NAME,DESCR, \ new bbtk::UserBlackBoxTGetFunctor,TYPE,TYPE > \ (&CLASS::bbGetOutput##NAME), \ new bbtk::UserBlackBoxTSetFunctor,TYPE,TYPE > \