]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkFactory.h
*** empty log message ***
[bbtk.git] / kernel / src / bbtkFactory.h
index 7a72a469b2934d7318f9d519dad3819fc619a33f..35c04e6e3e42e21f812502ccba739f8d27e325a2 100644 (file)
@@ -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/03/03 14:55:55 $
+  Version:   $Revision: 1.9 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See doc/license.txt or
@@ -43,13 +43,12 @@ namespace bbtk
     Factory();
     ~Factory();
 
-    void LoadPackage( const std::string& name, 
-                      bool use_configuration_file = true, 
-                     bool verbose = false );
+    void LoadPackage( const std::string& name );
     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,13 +71,22 @@ namespace bbtk
     void WriteDotFilePackagesList(FILE *ff);
 
     void Reset();
+    
+    typedef enum
+      {
+       Packages,
+       Categories,
+       Initials,
+       Adaptors
+      }
+      IndexEntryType;
+    void CreateHtmlIndex(IndexEntryType type, const std::string& filename);
 
   private:
 
     bool DoLoadPackage(std::string libname,
                       std::string pkgname,
-                      std::string path,
-                      bool v);
+                      std::string path);
 
     /// The structure storing info on a package
     class PackageInfoType
@@ -131,10 +139,9 @@ namespace bbtk
     }
   }
 
-  inline void LoadPackage( const std::string& name, 
-                           bool use_configuration_file = true, bool verbose = false )
+  inline void LoadPackage( const std::string& name )
   {
-    GetGlobalFactory()->LoadPackage(name,use_configuration_file, verbose);
+    GetGlobalFactory()->LoadPackage(name);
   }
 
   inline void UnLoadPackage( const std::string& name )
@@ -154,7 +161,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);
   }