X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkFactory.h;h=0a7f39e6f2f0a1adca70e8a842cc671b20862bfd;hb=157b1a61a177ccd0a3136f6e435880d949411c4d;hp=7a72a469b2934d7318f9d519dad3819fc619a33f;hpb=6990a8aeeaf98fc901ed193b95365b2eee2fb950;p=bbtk.git diff --git a/kernel/src/bbtkFactory.h b/kernel/src/bbtkFactory.h index 7a72a46..0a7f39e 100644 --- a/kernel/src/bbtkFactory.h +++ b/kernel/src/bbtkFactory.h @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkFactory.h,v $ Language: C++ - Date: $Date: 2008/01/22 16:55:04 $ - Version: $Revision: 1.2 $ + Date: $Date: 2008/02/12 12:55:16 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See doc/license.txt or @@ -49,7 +49,8 @@ namespace bbtk void UnLoadPackage( const std::string& name ); void PrintPackages(bool details = true, bool adaptors = false) const; void HelpPackage(const std::string& name, bool adaptors = false) const; - void HelpBlackBox(const std::string& name, bool full=true) const; + void HelpBlackBox(const std::string& name, std::string& package, + bool full=true ) const; void ShowGraphTypes(const std::string& name) const; void InsertPackage( Package* ); void RemovePackage( Package* ); @@ -72,6 +73,15 @@ namespace bbtk void WriteDotFilePackagesList(FILE *ff); void Reset(); + + typedef enum + { + Packages, + Categories, + Initials + } + IndexEntryType; + void CreateHtmlIndex(IndexEntryType type, const std::string& filename); private: @@ -154,7 +164,15 @@ namespace bbtk inline void HelpBlackBox(const std::string& name, bool full=true) { - GetGlobalFactory()->HelpBlackBox(name,full); + std::string package; + GetGlobalFactory()->HelpBlackBox(name, package, full); + } + + inline void HelpBlackBox(const std::string& name, std::string& package, + bool full=true + ) + { + GetGlobalFactory()->HelpBlackBox(name, package, full); }