void CHECK_SETTINGS (const string projectname) { ASSERT_EXACTLY_ONE_TRUE (is_mode_STD(), is_mode_DEBUG()); const string SFN = capslock (projectname + ".set"); const string sfn = projectname + ".set"; writeln (""); writeln ("============================"); writeln ("1) CHECKING OF SETTINGS FILE"); writeln ("============================"); writeln (""); writeln (" - CHECKING " + SFN + " SETTINGS FILE"); const bool CORR_SET = is_SETTINGS_FILE_CORRECT (sfn); if (CORR_SET) { writeln (" - " + SFN + " SETTINGS FILE IS CORRECT."); vector <vector <string> > SET = READ_SETTINGS_FILE (sfn); SET = COMPLETE_SET_WITH_DEFAULT (SET); INIT_SETTINGS (SET); } else { writeln (""); writeln (" WARNING, SET_ERROR: the input " + SFN + " file structure is incorrect, the file will not be processed."); throw set_error(); } }
void generate_PROJECT_FOLDER () { const string DT = return_DATE_TIME(); const string PN = capslock (PROJECTNAME); string PF = ""; if (!is_mode_DEBUG()) PF = DT + US + PN; else PF = PN; PROJECT_FOLDER = PF; return; }