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>"
15 Settings(const std::string i_path);
18 //get the value for a given option
19 const std::string getValue(const std::string i_key){return m_SettingsMap[i_key];}
21 void addDB(const std::string &i_path);
23 void removeDB(const std::string &i_path);
25 void updateSetting(const std::string& key, const std::string &val);
27 //write configuration file
28 void writeSettingsFile();
31 // Settings Key-Value Map
32 std::map<std::string, std::string> m_SettingsMap;
34 //read the configuration file
35 void readSettings(std::vector<std::string> &i_Keys, const std::string &i_file);
36 // create the configuration file
38 void writeSettings(std::ofstream &o_filebuf);
39 std::string m_SettingsFileName;