13 #include <boost/algorithm/string/case_conv.hpp>
14 #include <boost/filesystem/operations.hpp>
15 #include <boost/filesystem/path.hpp>
16 #include <boost/progress.hpp>
17 #include <boost/regex.hpp>
18 #include <boost/function.hpp>
22 #define minprefversion = 103; //please increase this every time you modify the preferences function(s). added 11.04.21 dab
66 strvalue =
"uninitialized_value";
69 doubvalue = -10002.1;};
83 setting(boost::filesystem::path newValue){
110 val = pathvalue.string();
155 void save(boost::filesystem::path save_filename);
167 boost::filesystem::path pFilename);
182 void set_name(boost::filesystem::path newfilename){
193 void load(boost::filesystem::path pFilename);
210 void setValue(std::string categoryName, std::string settingName, std::string settingValue){
211 settings[categoryName][settingName] =
setting(settingValue);}
217 void setValue(std::string categoryName, std::string settingName,
double settingValue){
218 settings[categoryName][settingName] =
setting(settingValue);}
225 void setValue(std::string categoryName, std::string settingName,
int settingValue){
226 settings[categoryName][settingName] =
setting(settingValue);}
229 void setValue(std::string categoryName, std::string settingName, boost::filesystem::path settingValue){
230 settings[categoryName][settingName] =
setting(settingValue);}
294 void FindProgram(std::string program_name, std::string category_name, std::string setting_name);
404 bool haveSetting(std::string category_name, std::string setting_name){
405 return settings[category_name].find(setting_name) != settings[category_name].end();};
void GetProgramLocationManual(std::string program_name, std::string category_name, std::string setting_name)
void GetTightenTolerancesPathFailure()
setting(std::string newValue)
std::string WriteConfigFail()
void setValue(std::string categoryName, std::string settingName, boost::filesystem::path settingValue)
static const char *const possible_savefiles[NUMPOSSIBLE_SAVEFILES]
void ChangeSetting(std::string category_name)
void DisplayCurrentSettings(std::string category_name)
A class that stores the information of a setting as used in an xml file.
void FindProgram(std::string program_name, std::string category_name, std::string setting_name)
void RequiredSettingsSwitcharoo(int settingcase)
void default_main_values()
void set_name(boost::filesystem::path newfilename)
int check_for_existing_prefs_auto(boost::filesystem::path &load_filename, boost::filesystem::path pFilename)
void SetSearchIterations()
ProgSettings(boost::filesystem::path tempfilename)
void setValue(std::string categoryName, std::string settingName, int settingValue)
void set_path_failure_settings_from_steptwo()
void GetDataFolderMethod()
void SetSearchDesiredNumber()
void default_path_failure_settings()
boost::filesystem::path pathvalue
void GetWriteMCFileUserDef()
void default_basic_bertini_values_steptwo()
bool haveSetting(std::string category_name, std::string setting_name)
std::map< std::string, settingmap > categorymap
void RemoveSetting(std::string category_name)
int SaveCategoryToXml(std::string catname, settingmap curr_settings, TiXmlElement *root)
boost::filesystem::path filename
boost::filesystem::path default_name()
static const char *const mandatory_savefiles[NUMMANDATORY_SAVEFILES]
void set_path_failure_settings()
std::string WriteConfigStepOne()
int ReadCategoryFromXml(std::string catname, TiXmlHandle hroot)
void AddSetting(std::string category_name)
setting()
Default constructor for setting class.
A class that stores the general program settings of Paramotopy.
boost::filesystem::path make_settings_name(boost::filesystem::path basename)
void default_basic_bertini_values_pathfailure()
void default_basic_bertini_values_stepone()
void setValue(std::string categoryName, std::string settingName, double settingValue)
void ManagePathFailureBertini()
setting(boost::filesystem::path newValue)
std::map< std::string, setting > settingmap
std::string WriteConfigStepTwo()
void GetTemporaryFileLocation()
void SetSearchPosRealThresh()
void GetNewRandomAtNewFolder()
void setValue(std::string categoryName, std::string settingName, std::string settingValue)