X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOSettings.cpp;h=92908785bc43de2a340dfba8254150d64e3ad3a7;hb=c08122ffc3af8809ead722968f26e01c24a15ed9;hp=99cc4c526fb8ab4df14bdd3c77ad01a380bdda5e;hpb=48959b03ebd4e0d100f468f6c05c873f70b43516;p=creaImageIO.git diff --git a/src2/creaImageIOSettings.cpp b/src2/creaImageIOSettings.cpp index 99cc4c5..9290878 100644 --- a/src2/creaImageIOSettings.cpp +++ b/src2/creaImageIOSettings.cpp @@ -12,7 +12,7 @@ namespace creaImageIO Settings::Settings(const std::string i_path) { //need to position path in user directory first. - m_SettingsFileName = i_path + "\\.gimmick\\app.config"; + m_SettingsFileName = i_path + "\\.gimmick\\Shared\\gimmick\\app.config"; //Test if Settings File exist if(!boost::filesystem::exists(m_SettingsFileName) ) { @@ -79,6 +79,18 @@ namespace creaImageIO } } } + + //////////////////////////////////////////////////////////////////////////////////////////////// + // Update settings in config file // + // @param key : Key to update // + // @param value: New value to set // + // return : - + /////////////////////////////////////////////////////////////////////////////////////////////// + void Settings::updateSetting(const std::string& key, const std::string &val) + { + m_SettingsMap[key.c_str()] = val; + } + //////////////////////////////////////////////////////////////////////////////////////////////// // add a path to a DB // // @param i_path : DB path to add //