]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOSettings.cpp
Added attribute reading functionality.
[creaImageIO.git] / src2 / creaImageIOSettings.cpp
index 99cc4c526fb8ab4df14bdd3c77ad01a380bdda5e..03b4317747c56e2d16e3eeb7c254c6f6690f8cc5 100644 (file)
@@ -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                                                             //