bool CJudgeGPP::Initialize(const Record& record) { ClearFiles(); // initial required fields if (!InitializeFields(record, false)) { TRACE_WARN("initial fields failed!\n"); return false; } // initial data path if (!InitializeDataPath(record.problem_id)) { TRACE_WARN("initial data path failed!\n"); return false; } // clear all file in judge path if (!GenerateMain("Main.cpp")) { TRACE_WARN("Generate Main.cpp failed!\n"); return false; } return true; }
TimetableModificator::TimetableModificator(const vector<Entry> *timetable) { InitializeFields(); *m_resultArray = *timetable; target = m_resultArray->begin(); }