#include <iostream>
#include <fstream>
+// Memory tracking allocation
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#endif
using namespace boost;
namespace po = boost::program_options;
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) )
{
Keys.push_back(SETTINGS_DBPATH);
Keys.push_back(SETTINGS_SYNC_FREQ);
Keys.push_back(SETTINGS_COPY_PATH);
+ Keys.push_back(SETTINGS_REMOVE_PATIENT_DISPLAY);
readSettings(Keys, sets);
}
m_SettingsMap[SETTINGS_DBPATH] = "";
m_SettingsMap[SETTINGS_DICOM_LIBRARY] = "gdcm";
m_SettingsMap[SETTINGS_COPY_PATH] = m_SettingsFileName.substr(0,m_SettingsFileName.find_last_of('\\')+1)+"Copied files";
+ m_SettingsMap[SETTINGS_REMOVE_PATIENT_DISPLAY] = "0";
writeSettingsFile();
}