]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkFactory.cxx
*** empty log message ***
[bbtk.git] / kernel / src / bbtkFactory.cxx
index 48963f21558658cca8ec5c79aa42a29342a5e3dc..ab82b885600f5583cb2f412fb7c77492f2785bb1 100644 (file)
@@ -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/12 12:55:16 $
+Version:   $Revision: 1.18 $
                                                                                 
 
 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
@@ -582,8 +582,11 @@ namespace bbtk
   //===================================================================
 
   //===================================================================
-  /// Prints help on the black box of type <name>
-  void Factory::HelpBlackBox(const std::string& name, bool full) const
+  /// Prints help on the black box of type <name> 
+  /// 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(\""<<name<<"\")"
                         <<std::endl);
@@ -595,6 +598,7 @@ namespace bbtk
       if (i->second.mPackage->ContainsBlackBox(name)) 
         {
           i->second.mPackage->HelpBlackBox(name,full);
+         package = i->second.mPackage->GetName();
           found = true;
         }
       }