]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkConfigurationFile.cxx
*** empty log message ***
[bbtk.git] / kernel / src / bbtkConfigurationFile.cxx
index b15e061e4ad08180e88eced07be917e6b88ca592..167579f37f4636a17b3cf96dcf21309821993424 100644 (file)
@@ -3,8 +3,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkConfigurationFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2008/01/22 15:02:00 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2008/02/06 10:53:02 $
+  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
@@ -133,9 +133,9 @@ void ConfigurationFile::CreateConfigXML( char *rootDirectory )
    fprintf(fp, "   <package_path> </package_path>\n");
    fprintf(fp, "   <data_path> %s </data_path>\n", BBTK_DATA_PATH);
    /// \todo find a decent default value !
-   ///fprintf(fp, "   <default_doc_tmp>  %s </default_doc_tmp>\n", " ");
-   // when $ will be found, default_doc_tmp value will be replaced
-   fprintf(fp, "   <default_doc_tmp>$</default_doc_tmp>\n");
+   ///fprintf(fp, "   <default_temp_dir>  %s </default_temp_dir>\n", " ");
+   // when $ will be found, default_temp_dir value will be replaced
+   fprintf(fp, "   <default_temp_dir>$</default_temp_dir>\n");
    fprintf(fp, "</config>\n");
    fclose(fp);
 }
@@ -399,14 +399,14 @@ void ConfigurationFile::Read(const std::string& filename)
       mPackage_paths.push_back(val);
     }
 
-  // default_doc_tmp
-  if( BB.nChildNode((XMLCSTR)"default_doc_tmp") ) 
-     GetTextOrClear(BB.getChildNode((XMLCSTR)"default_doc_tmp"),mDefault_doc_tmp);
+  // default_temp_dir
+  if( BB.nChildNode((XMLCSTR)"default_temp_dir") ) 
+     GetTextOrClear(BB.getChildNode((XMLCSTR)"default_temp_dir"),mDefault_temp_dir);
 
-  if ( mDefault_doc_tmp == "$") // no value found in config_xml
+  if ( mDefault_temp_dir == "$") // no value found in config_xml
   {
      size_t pos = mConfig_xml_full_path.find("bbtk_config.xml");
-     mDefault_doc_tmp = mConfig_xml_full_path.substr (0,pos); 
+     mDefault_temp_dir = mConfig_xml_full_path.substr (0,pos); 
   }    
   // file separator
   #if defined(_WIN32)