1 #include <boost/program_options.hpp>
4 #define SETTINGS_DICOM_LIBRARY "<DICOM Library>"
5 #define SETTINGS_SYNC_EVENT "<syncro_event>"
6 #define SETTINGS_SYNC_FREQ "<syncro_frequency>"
7 #define SETTINGS_DBPATH "<dbpath>"
8 #define SETTINGS_COPY_PATH "<copy_path>"
9 #define SETTINGS_REMOVE_PATIENT_DISPLAY "<remove_patient>"
10 #define SETTINGS_OUTPUT_ASK "<output_ask>"
11 #define SETTINGS_OUTPUT_DIM "<output_dim>"
18 Settings(const std::string i_path);
21 //get the value for a given option
22 const std::string getValue(const std::string i_key){return m_SettingsMap[i_key];}
24 void addDB(const std::string &i_path);
26 void removeDB(const std::string &i_path);
28 void updateSetting(const std::string& key, const std::string &val);
30 //write configuration file
31 void writeSettingsFile();
34 // Settings Key-Value Map
35 std::map<std::string, std::string> m_SettingsMap;
37 //read the configuration file
38 void readSettings(std::vector<std::string> &i_Keys, const std::string &i_file);
39 // create the configuration file
41 void writeSettings(std::ofstream &o_filebuf);
42 std::string m_SettingsFileName;