]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkConfigurationFile.h
nexs
[bbtk.git] / kernel / src / bbtkConfigurationFile.h
index 8f15528987461855d36a0008b5c62501a8742e73..47521d976cfe40ca14ebe3d830ad3b6ddc33d30f 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkConfigurationFile.h,v $
   Language:  C++
-  Date:      $Date: 2008/02/14 10:47:51 $
-  Version:   $Revision: 1.5 $
+  Date:      $Date: 2008/10/15 13:02:14 $
+  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,6 +43,7 @@
 #include <vector>
 
 
+
 namespace bbtk
 {
   //==========================================================================
@@ -60,7 +61,7 @@ namespace bbtk
   {
   public:
     
-    static ConfigurationFile const &GetInstance()
+    static ConfigurationFileGetInstance()
     {
       static ConfigurationFile f;
       return f;
@@ -82,7 +83,7 @@ namespace bbtk
     inline const std::string& Get_data_path() const
     { return mData_path;}  
     inline const std::string& Get_file_separator() const
-    { return mFile_separator;}
+       { return mFile_separator;}
     
     inline const std::string& Get_bin_path() const
     { return mBin_path;}
@@ -93,6 +94,8 @@ namespace bbtk
     inline const std::string& Get_rsc_path() const
     { return mRsc_path;}
     
+    inline const std::string& Get_root_bbs_path() const
+    { return mBbs_path;}
     inline const std::vector<std::string>& Get_bbs_paths() const
     { return mBbs_paths;}
     inline const std::vector<std::string>& Get_package_paths() const
@@ -101,6 +104,8 @@ namespace bbtk
     { return mConfig_xml_full_path;}
     inline const std::string& Get_default_temp_dir() const
     { return mDefault_temp_dir;}
+
+    bool AddPackagePathsAndWrite( const std::string& package_root_path );
     
   private:
     void Read(const std::string& fileName);