]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkFactory.h
Move some general usage methods to Utilities, to avoid dupplicate code :
[bbtk.git] / kernel / src / bbtkFactory.h
index 7a5476819d1452d9b2138abadca16b0d866abe40..7a72a469b2934d7318f9d519dad3819fc619a33f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkFactory.h,v $
   Language:  C++
-  Date:      $Date: 2008/01/22 15:02:00 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2008/01/22 16:55:04 $
+  Version:   $Revision: 1.2 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See doc/license.txt or
@@ -35,9 +35,6 @@
 
 namespace bbtk
 {
-
-
-
   class BBTK_EXPORT Factory
   {
 
@@ -71,26 +68,18 @@ namespace bbtk
                               const std::string& output,
                               BlackBox* to,
                               const std::string& input) const;
-    
+
     void WriteDotFilePackagesList(FILE *ff);
 
     void Reset();
-    
-    // usefull in many places.
-    // -> should be factorized : bbtk::Util class?    
-    bool FileExists(std::string strFilename);
+
   private:
-    /// the methods for LoadPackage
-    std::string ExtractPackageName(const std::string &name, 
-                                  std::string& path);
-    std::string ExpandLibName(const std::string &name, bool v);  
-    std::string MakeLibnameFromPath(std::string path, std::string pkgname);
+
     bool DoLoadPackage(std::string libname,
                       std::string pkgname,
                       std::string path,
                       bool v);
-    bool IsAtRoot(std::string cwd);     
-    private:
+
     /// The structure storing info on a package
     class PackageInfoType
     {