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