X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkConfigurationFile.cxx;h=167579f37f4636a17b3cf96dcf21309821993424;hb=7eba604321498f7ed6333b7cbe9bf2aceb4ec30e;hp=b15e061e4ad08180e88eced07be917e6b88ca592;hpb=a26195c366a89795288009cf7e20f11afa494970;p=bbtk.git diff --git a/kernel/src/bbtkConfigurationFile.cxx b/kernel/src/bbtkConfigurationFile.cxx index b15e061..167579f 100644 --- a/kernel/src/bbtkConfigurationFile.cxx +++ b/kernel/src/bbtkConfigurationFile.cxx @@ -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, " \n"); fprintf(fp, " %s \n", BBTK_DATA_PATH); /// \todo find a decent default value ! - ///fprintf(fp, " %s \n", " "); - // when $ will be found, default_doc_tmp value will be replaced - fprintf(fp, " $\n"); + ///fprintf(fp, " %s \n", " "); + // when $ will be found, default_temp_dir value will be replaced + fprintf(fp, " $\n"); fprintf(fp, "\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)