X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkFactory.cxx;h=138006cc7a1b01ebe7e05d6c0b309b1e6c902ac1;hb=400f5daf4374267b93b347affb285943f60803f2;hp=48963f21558658cca8ec5c79aa42a29342a5e3dc;hpb=6ad84645e7e5971e3a7b166bd3099c06c343010f;p=bbtk.git diff --git a/kernel/src/bbtkFactory.cxx b/kernel/src/bbtkFactory.cxx index 48963f2..138006c 100644 --- a/kernel/src/bbtkFactory.cxx +++ b/kernel/src/bbtkFactory.cxx @@ -4,8 +4,8 @@ Program: bbtk Module: $RCSfile: bbtkFactory.cxx,v $ Language: C++ -Date: $Date: 2008/02/08 07:39:49 $ -Version: $Revision: 1.17 $ +Date: $Date: 2008/02/14 12:15:59 $ +Version: $Revision: 1.20 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de @@ -109,6 +109,7 @@ namespace bbtk { #if defined(__GNUC__) + verbose = true; void *handler; handler = dlopen(libname.c_str(), @@ -583,7 +584,10 @@ namespace bbtk //=================================================================== /// Prints help on the black box of type - void Factory::HelpBlackBox(const std::string& name, bool full) const + /// Returns the package to which it belongs + void Factory::HelpBlackBox(const std::string& name, + std::string& package, + bool full) const { bbtkDebugMessageInc("Kernel",9,"Factory::HelpBlackBox(\""<second.mPackage->ContainsBlackBox(name)) { i->second.mPackage->HelpBlackBox(name,full); + package = i->second.mPackage->GetName(); found = true; } }