X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOSettings.cpp;h=03b4317747c56e2d16e3eeb7c254c6f6690f8cc5;hb=e4c4c1a9a170f8eb89f8e8642a510c4499465280;hp=43d879ebba13b7aa377234591313d9cf51f55311;hpb=9b19229069b38b9b14563f427554fa7c8fd9ac6f;p=creaImageIO.git diff --git a/src2/creaImageIOSettings.cpp b/src2/creaImageIOSettings.cpp index 43d879e..03b4317 100644 --- a/src2/creaImageIOSettings.cpp +++ b/src2/creaImageIOSettings.cpp @@ -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 // @@ -133,6 +145,6 @@ namespace creaImageIO ofs.clear(); writeSettings(ofs); ofs.close(); - } - -} \ No newline at end of file + } +} +